From fd25605eb1fcecb107e6d9e17dca8926edfe2dcf Mon Sep 17 00:00:00 2001 From: fanfan Date: Mon, 21 Oct 2024 22:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/Detail.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/order/Detail.vue b/src/views/order/Detail.vue index 635218f..55dfbf1 100644 --- a/src/views/order/Detail.vue +++ b/src/views/order/Detail.vue @@ -583,8 +583,7 @@ export default { return ColorEnum[orderStatus] }, handleForcecancel() { - let that = this - this.isLoading = true + let that = this const modal = this.$confirm({ title: '您确定要取消该订单吗', onOk() { @@ -598,7 +597,7 @@ export default { that.$message.fail(result.message, 1.5) } }) - .finally(() => (that.isLoading = false)) + .finally((result) => modal.destroy()) }, }) },