hookehuyr

fix 取消发送确认弹框

1 <!-- 1 <!--
2 * @Date: 2024-09-29 14:26:41 2 * @Date: 2024-09-29 14:26:41
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-21 16:20:10 4 + * @LastEditTime: 2024-10-21 18:30:13
5 * @FilePath: /hager/src/views/product/detail.vue 5 * @FilePath: /hager/src/views/product/detail.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -151,21 +151,10 @@ export default { ...@@ -151,21 +151,10 @@ export default {
151 goToDownload () { 151 goToDownload () {
152 if (this.is_download_checked) { 152 if (this.is_download_checked) {
153 // 发送邮箱接口 153 // 发送邮箱接口
154 - MessageBox.confirm('是否发送到邮箱?', '提示', { 154 + Message({
155 - confirmButtonText: '确定', 155 + type: 'success',
156 - cancelButtonText: '取消', 156 + message: '发送成功'
157 - type: 'warning' 157 + });
158 - }).then(() => {
159 - Message({
160 - type: 'success',
161 - message: '发送成功'
162 - });
163 - }).catch(() => {
164 - Message({
165 - type: 'info',
166 - message: '已取消发送'
167 - })
168 - })
169 } 158 }
170 }, 159 },
171 checkAll () { 160 checkAll () {
...@@ -173,21 +162,10 @@ export default { ...@@ -173,21 +162,10 @@ export default {
173 }, 162 },
174 sendEmail () { 163 sendEmail () {
175 // 发送邮箱接口 164 // 发送邮箱接口
176 - MessageBox.confirm('是否发送到邮箱?', '提示', { 165 + Message({
177 - confirmButtonText: '确定', 166 + type: 'success',
178 - cancelButtonText: '取消', 167 + message: '发送成功'
179 - type: 'warning' 168 + });
180 - }).then(() => {
181 - Message({
182 - type: 'success',
183 - message: '发送成功'
184 - });
185 - }).catch(() => {
186 - Message({
187 - type: 'info',
188 - message: '已取消发送'
189 - })
190 - })
191 }, 169 },
192 preview (item) { 170 preview (item) {
193 window.open(item, '_blank'); 171 window.open(item, '_blank');
......