This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAdmin/web/views/@default/settings/ip-library/index.js
T
2020-11-27 15:18:32 +08:00

24 lines
492 B
JavaScript

Tea.context(function () {
this.upload = function () {
teaweb.popup("/settings/ip-library/uploadPopup", {
callback: function () {
teaweb.success("上传成功", function () {
teaweb.reload()
})
}
})
}
this.deleteLibrary = function (libraryId) {
let that = this
teaweb.confirm("确定要删除此IP库吗?", function () {
that.$post(".delete")
.params({
"libraryId": libraryId
})
.success(function () {
teaweb.reload()
})
})
}
})