实现删除集群

This commit is contained in:
GoEdgeLab
2020-10-25 16:22:36 +08:00
parent 08af418665
commit 379ec0790e
7 changed files with 56 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
Tea.context(function () {
this.deleteCluster = function (clusterId) {
let that = this
teaweb.confirm("确定要删除此集群吗?", function () {
that.$post("/clusters/delete")
.params({
clusterId: clusterId
})
.refresh()
})
}
})