18 lines
474 B
JavaScript
18 lines
474 B
JavaScript
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();
|
|
});
|
|
};
|
|
});
|