From 0d3db253cad1fb49c4fae9b9a537c8c318c7172f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 29 十一月 2023 10:23:59 +0800 Subject: [PATCH] 优化应用中心卸载 --- src/pages/systemSettings/components/ClusterManagement.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/pages/systemSettings/components/ClusterManagement.vue b/src/pages/systemSettings/components/ClusterManagement.vue index d215224..b6f12e2 100644 --- a/src/pages/systemSettings/components/ClusterManagement.vue +++ b/src/pages/systemSettings/components/ClusterManagement.vue @@ -292,7 +292,6 @@ }, data() { const checkPwd = (rule, value, callback) => { - debugger if (!value) { return callback(new Error("瀵嗙爜涓嶈兘涓虹┖")); } @@ -511,7 +510,6 @@ async search(json) { let res = await search(json); if (res && res.success) { - console.log(res, "鎼滅储闆嗙兢"); this.searchNum = res.data; } this.searchDis = true; @@ -653,11 +651,7 @@ }) .then(async () => { let res = await leave(); - this.$notify({ - title: res.success ? "鎴愬姛" : "澶辫触", - message: res.msg, - type: res.success ? "success" : "error", - }); + if (res && res.success) { this.ruleForm.clustername = ""; this.ruleForm.clusterpwd = ""; @@ -666,6 +660,11 @@ this.activeName = "1"; this.members = []; this.innerNodes = []; + this.$notify({ + title: "鎴愬姛", + message: "閫�鍑烘垚鍔�", + type: "success", + }); } }) .catch(() => { @@ -676,6 +675,11 @@ this.activeName = "1"; this.members = []; this.innerNodes = []; + this.$notify({ + title: "澶辫触", + message: "閫�鍑哄け璐�", + type: "error", + }); }); }, joinNode(event, node) { -- Gitblit v1.8.0