调整目录结构

This commit is contained in:
刘祥超
2020-11-27 15:18:32 +08:00
parent e3eeee146b
commit 534a3f77f8
42 changed files with 56 additions and 199 deletions

View File

@@ -0,0 +1,24 @@
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()
})
})
}
})