hookehuyr

fix 取消发送确认弹框

<!--
* @Date: 2024-09-29 14:26:41
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-21 16:20:10
* @LastEditTime: 2024-10-21 18:30:13
* @FilePath: /hager/src/views/product/detail.vue
* @Description: 文件描述
-->
......@@ -151,21 +151,10 @@ export default {
goToDownload () {
if (this.is_download_checked) {
// 发送邮箱接口
MessageBox.confirm('是否发送到邮箱?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
Message({
type: 'success',
message: '发送成功'
});
}).catch(() => {
Message({
type: 'info',
message: '已取消发送'
})
})
Message({
type: 'success',
message: '发送成功'
});
}
},
checkAll () {
......@@ -173,21 +162,10 @@ export default {
},
sendEmail () {
// 发送邮箱接口
MessageBox.confirm('是否发送到邮箱?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
Message({
type: 'success',
message: '发送成功'
});
}).catch(() => {
Message({
type: 'info',
message: '已取消发送'
})
})
Message({
type: 'success',
message: '发送成功'
});
},
preview (item) {
window.open(item, '_blank');
......