23 lines
655 B
JavaScript
23 lines
655 B
JavaScript
Tea.context(function () {
|
|
this.isOn = true
|
|
|
|
this.syncDefaultClusterEnabled = function () {
|
|
}
|
|
|
|
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"
|
|
})
|
|
}
|
|
})
|