确认弹窗的取消按钮bug修复

master
zhaoxiaolin 1 year ago
parent 2ca99f1b7d
commit 4c71ddc074

@ -1235,13 +1235,24 @@ export default {
}, },
// -SAP // -SAP
handleSyncSAP() { handleSyncSAP() {
this.loading = true;
let _this = this;
this.$modal.confirm('是否确认SAP同步操作步骤').then(function () { this.$modal.confirm('是否确认SAP同步操作步骤').then(function () {
return syncSAP() return syncSAP()
}).then(() => { }).then(() => {
this.getList() this.getList()
this.loading = false;
this.$modal.msgSuccess('同步成功') this.$modal.msgSuccess('同步成功')
}).catch(() => { }).catch(
}) function (e) {
if (e == 'cancel') {
_this.loading = false;
} else if(e == 'close') {
_this.loading = false;
}
}
)
} }
} }

Loading…
Cancel
Save