Files
waf-platform/EdgeAdmin/web/views/@default/httpdns/clusters/create.js
2026-03-02 20:07:53 +08:00

20 lines
597 B
JavaScript

Tea.context(function () {
this.isOn = true
this.success = function (resp) {
let clusterId = 0
if (resp != null && resp.data != null && typeof resp.data.clusterId != "undefined") {
clusterId = resp.data.clusterId
}
if (clusterId > 0) {
teaweb.success("保存成功", function () {
window.location = "/httpdns/clusters/cluster?clusterId=" + clusterId
})
return
}
teaweb.success("保存成功", function () {
window.location = "/httpdns/clusters"
})
}
})