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"; }); }); }); }; });