邮件发送loading2

This commit is contained in:
dong.ai
2025-09-25 17:22:53 +08:00
parent 01caa01272
commit 44026f1184

View File

@@ -695,14 +695,21 @@ export default {
} }
this.$validator.validate().then(valid => { this.$validator.validate().then(valid => {
if (true === valid) { if (true === valid) {
getSendEmail(params).then(res => {
if (res.result == '0') {
Toast.loading({ Toast.loading({
message: '加载中...', message: '加载中...',
loadingType: 'spinner', loadingType: 'spinner',
forbidClick: true, forbidClick: true,
duration: 2000 duration: 0
}); });
getSendEmail(params).then(res => {
Toast.clear();
if (res.result == '0') {
// Toast.loading({
// message: '加载中...',
// loadingType: 'spinner',
// forbidClick: true,
// duration: 2000
// });
// 调用下载方法 // 调用下载方法
// getDownloadZip({ orderNo: this.revokeOrderNo }).then(downRes => {、 // getDownloadZip({ orderNo: this.revokeOrderNo }).then(downRes => {、
// this.handleDownload(downRes) // this.handleDownload(downRes)
@@ -717,6 +724,9 @@ export default {
} else if (res.result == '1') { } else if (res.result == '1') {
Toast.fail(res.resultMessage) Toast.fail(res.resultMessage)
} }
}).catch(error => {
Toast.clear();
throw error;
}) })
} }
else { else {