| | |
| | | }) |
| | | .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 = ""; |
| | |
| | | this.activeName = "1"; |
| | | this.members = []; |
| | | this.innerNodes = []; |
| | | this.$notify({ |
| | | title: "成功", |
| | | message: "退出成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | |
| | | this.activeName = "1"; |
| | | this.members = []; |
| | | this.innerNodes = []; |
| | | this.$notify({ |
| | | title: "失败", |
| | | message: "退出失败", |
| | | type: "error", |
| | | }); |
| | | }); |
| | | }, |
| | | joinNode(event, node) { |