前端页面
This commit is contained in:
16
EdgeAdmin/web/views/@default/httpdns/apps/delete.js
Normal file
16
EdgeAdmin/web/views/@default/httpdns/apps/delete.js
Normal file
@@ -0,0 +1,16 @@
|
||||
Tea.context(function () {
|
||||
this.deleteApp = function (appId) {
|
||||
let that = this;
|
||||
teaweb.confirm("确定要删除此应用吗?", function () {
|
||||
that.$post("/httpdns/apps/delete")
|
||||
.params({
|
||||
appId: appId
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.success("删除成功", function () {
|
||||
window.location = "/httpdns/apps";
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user