Files
EdgeAdmin/web/views/@default/servers/server/settings/locations/reverseProxy/index.js
2022-06-29 21:56:44 +08:00

17 lines
436 B
JavaScript

Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功")
this.updateOn = function (b) {
teaweb.confirm(b ? "确定要启用源站吗?" : "确定要停用源站服务吗?", function () {
this.$post(".updateOn")
.params({
"serverId": this.serverId,
"isOn": b ? 1 : 0,
"reverseProxyId": this.reverseProxyId
})
.success(function () {
window.location.reload()
})
})
}
})