From 760c9ff83ee8366e1cd623a1fb6fedfe96b94813 Mon Sep 17 00:00:00 2001 From: fanfan Date: Sun, 20 Oct 2024 15:13:56 +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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/order/Detail.vue b/src/views/order/Detail.vue index c365948..d23ed76 100644 --- a/src/views/order/Detail.vue +++ b/src/views/order/Detail.vue @@ -599,13 +599,13 @@ export default { this.isLoading = true Api.forceCancel({ orderId }) .then((result) => { - if (result.status==200) { - this.$message.success('强制取消成功', 1.5) - }else{ - this.$message.fail ('强制取消失败', 1.5) + if (result.status == 200) { + this.$message.success(result.message, 1.5) + // 初始化数据 + this.getDetail() + } else { + this.$message.fail(result.message, 1.5) } - // 初始化数据 - // this.initData() }) .finally(() => (this.isLoading = false)) },