Files
waf-platform/EdgeAdmin/web/views/@default/httpdns/apps/domains.js
2026-02-24 11:33:44 +08:00

25 lines
667 B
JavaScript

Tea.context(function () {
if (typeof this.domains == "undefined") {
this.domains = [];
}
this.bindDomain = function () {
teaweb.popup("/httpdns/apps/domains/createPopup?appId=" + this.app.id, {
height: "24em",
width: "46em",
title: "添加域名"
});
};
this.deleteDomain = function (domainId) {
let that = this;
teaweb.confirm("确定要解绑这个域名吗?", function () {
that.$post("/httpdns/apps/domains/delete")
.params({
domainId: domainId
})
.refresh();
});
};
});