mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-11 10:04:02 +08:00
调整界面
This commit is contained in:
14
web/views/@default/clusters/cluster/delete.js
Normal file
14
web/views/@default/clusters/cluster/delete.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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"
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user