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)) },