Files
EdgeAdmin/web/views/@default/servers/server/delete/index.js

15 lines
392 B
JavaScript
Raw Normal View History

2020-09-13 20:37:07 +08:00
Tea.context(function () {
this.deleteServer = function (serverId) {
2023-05-28 15:17:33 +08:00
teaweb.confirm("html:确定要删除当前网站吗?<br/>请慎重操作,删除后无法恢复!", function () {
2020-09-13 20:37:07 +08:00
this.$post("$")
.params({
"serverId": serverId
})
.success(function () {
2020-09-26 08:07:18 +08:00
teaweb.success("删除成功", function () {
window.location = "/servers"
})
2020-09-13 20:37:07 +08:00
})
})
}
})