From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 23 六月 2022 17:42:58 +0800
Subject: [PATCH] bug修复

---
 src/pages/systemSettings/components/ClusterManagement.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/pages/systemSettings/components/ClusterManagement.vue b/src/pages/systemSettings/components/ClusterManagement.vue
index 9e3efcf..326a274 100644
--- a/src/pages/systemSettings/components/ClusterManagement.vue
+++ b/src/pages/systemSettings/components/ClusterManagement.vue
@@ -652,11 +652,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 = "";
@@ -665,6 +661,11 @@
             this.activeName = "1";
             this.members = [];
             this.innerNodes = [];
+            this.$notify({
+              title: "鎴愬姛",
+              message: "閫�鍑烘垚鍔�",
+              type: "success",
+            });
           }
         })
         .catch(() => {
@@ -675,6 +676,11 @@
           this.activeName = "1";
           this.members = [];
           this.innerNodes = [];
+          this.$notify({
+            title: "澶辫触",
+            message: "閫�鍑哄け璐�",
+            type: "error",
+          });
         });
     },
     joinNode(event, node) {

--
Gitblit v1.8.0