mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
13 lines
298 B
JavaScript
13 lines
298 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.deleteServer = function (serverId) {
|
||
|
|
teaweb.confirm("确定要删除当前服务吗?", function () {
|
||
|
|
this.$post("$")
|
||
|
|
.params({
|
||
|
|
"serverId": serverId
|
||
|
|
})
|
||
|
|
.success(function () {
|
||
|
|
teaweb.successURL("删除成功", "/servers")
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|