mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
15 lines
401 B
JavaScript
15 lines
401 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
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()
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|