管理端全部功能跑通
This commit is contained in:
17
EdgeAdmin/web/views/@default/httpdns/clusters/create.js
Normal file
17
EdgeAdmin/web/views/@default/httpdns/clusters/create.js
Normal file
@@ -0,0 +1,17 @@
|
||||
Tea.context(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"
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user