From 685845394c4748fca1a4fcfce711b49389c51003 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 6 Feb 2021 19:40:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/views/@default/clusters/cluster/delete.js | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/web/views/@default/clusters/cluster/delete.js b/web/views/@default/clusters/cluster/delete.js index 45413ae6..e35cab1e 100644 --- a/web/views/@default/clusters/cluster/delete.js +++ b/web/views/@default/clusters/cluster/delete.js @@ -1,14 +1,16 @@ Tea.context(function () { - this.deleteCluster = function (clusterId) { - let that = this - teaweb.confirm("确定要删除此集群吗?", function () { - that.$post("/clusters/cluster/delete") - .params({ - clusterId: clusterId - }) - .success(function () { - window.location = "/clusters" - }) - }) - } + this.deleteCluster = function (clusterId) { + let that = this + teaweb.confirm("确定要删除此集群吗?", function () { + that.$post("/clusters/cluster/delete") + .params({ + clusterId: clusterId + }) + .success(function () { + teaweb.success("删除成功", function () { + window.location = "/clusters" + }) + }) + }) + } }) \ No newline at end of file