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" }) } })