Files
waf-platform/EdgeAdmin/web/views/@default/settings/ip-library/libraries/index.js
2026-02-04 20:27:13 +08:00

34 lines
826 B
JavaScript

Tea.context(function () {
this.isGenerating = false
this.generateLibrary = function (libraryFileId) {
let that = this
teaweb.confirm("确定要重新生成库文件吗?", function () {
that.isGenerating = true
that.$post("/settings/ip-library/creating/generate")
.params({
libraryFileId: libraryFileId
})
.timeout(300)
.success(function () {
teaweb.successRefresh("生成成功")
})
.done(function () {
that.isGenerating = false
})
})
}
this.deleteLibrary = function (libraryFileId) {
let that = this
teaweb.confirm("html:确定要删除此库文件吗?", function () {
that.$post("/settings/ip-library/delete")
.params({
libraryFileId: libraryFileId
})
.success(function () {
teaweb.successRefresh("删除成功")
})
})
}
})