From e4883fb24fcc27c4441dba0cf9231103501bb78e Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 25 Dec 2023 09:31:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=94=B6=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitor/index.vue | 32 +++++++++-------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue index c958976..606802a 100644 --- a/src/views/realTimeMonitor/index.vue +++ b/src/views/realTimeMonitor/index.vue @@ -816,23 +816,16 @@ export default { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", - }) - .then(() => { - this.collectFlag = true; - addFavorList({ list: [this.zztermId], type: 1 }).then((res) => { - this.getupdateFavorTreeList(); - }); - this.$message({ - type: "success", - message: "添加成功!", - }); - }) - .catch(() => { - this.$message({ - type: "info", - message: "已取消该操作", - }); + }).then(() => { + this.collectFlag = true; + addFavorList({ list: [this.zztermId], type: 1 }).then((res) => { + this.getupdateFavorTreeList(); + }); + this.$message({ + type: "success", + message: "添加成功!", }); + }); } else { this.$confirm("此操作将取消收藏, 是否继续?", "提示", { confirmButtonText: "确定", @@ -841,16 +834,11 @@ export default { }).then(() => { this.collectFlag = false; addFavorList({ list: [this.zztermId], type: 0 }).then((res) => { - this.getFavorTreeList(); + this.getupdateFavorTreeList(); }); this.$message({ type: "success", message: "取消收藏!", - }).catch(() => { - this.$message({ - type: "info", - message: "已取消该操作", - }); }); }); }