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