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('是否发送到邮箱?', '提示', {
155 - confirmButtonText: '确定',
156 - cancelButtonText: '取消',
157 - type: 'warning'
158 - }).then(() => {
159 Message({ 154 Message({
160 type: 'success', 155 type: 'success',
161 message: '发送成功' 156 message: '发送成功'
162 }); 157 });
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('是否发送到邮箱?', '提示', {
177 - confirmButtonText: '确定',
178 - cancelButtonText: '取消',
179 - type: 'warning'
180 - }).then(() => {
181 Message({ 165 Message({
182 type: 'success', 166 type: 'success',
183 message: '发送成功' 167 message: '发送成功'
184 }); 168 });
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');
......