前端页面
This commit is contained in:
17
EdgeAdmin/web/views/@default/httpdns/clusters/index.js
Normal file
17
EdgeAdmin/web/views/@default/httpdns/clusters/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
Tea.context(function () {
|
||||
this.hasErrorLogs = false; // Mock data
|
||||
if (typeof this.clusters == "undefined") {
|
||||
this.clusters = [];
|
||||
}
|
||||
|
||||
this.deleteCluster = function (clusterId) {
|
||||
let that = this;
|
||||
teaweb.confirm("确定要删除这个集群吗?", function () {
|
||||
that.$post(".delete")
|
||||
.params({
|
||||
clusterId: clusterId
|
||||
})
|
||||
.refresh();
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user