16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
Tea.context(function () {
|
||
this.teaweb = teaweb
|
||
|
||
this.deleteArtifact = function (artifactId) {
|
||
let that = this
|
||
teaweb.confirm("确定要删除此IP库吗?", function () {
|
||
that.$post("/settings/ip-library/delete")
|
||
.params({
|
||
artifactId: artifactId
|
||
})
|
||
.success(function () {
|
||
teaweb.successRefresh("删除成功")
|
||
})
|
||
})
|
||
}
|
||
}) |