Files
EdgeAdmin/web/views/@default/servers/server/settings/dns/index.js
2022-08-26 19:51:07 +08:00

22 lines
540 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功")
this.regenerateCNAME = function () {
let serverId = this.serverId
teaweb.confirm("确定要重新生成此服务的CNAME吗", function () {
this.$post(".regenerateCNAME")
.params({
serverId: serverId
})
.refresh()
})
}
this.updateCNAME = function () {
teaweb.popup("/servers/server/settings/dns/updateCNAMEPopup?serverId=" + this.serverId, {
callback: function () {
teaweb.successRefresh("保存成功")
}
})
}
})