IP名单批量导入IP支持CIDR

This commit is contained in:
刘祥超
2021-08-19 10:50:15 +08:00
parent e426bba8b5
commit f08289351d
4 changed files with 26 additions and 8 deletions

View File

@@ -1,6 +1,10 @@
Tea.context(function () {
this.success = function (resp) {
teaweb.success("成功导入" + resp.data.count + "个IP", function () {
let message = "成功导入" + resp.data.count + "个IP"
if (resp.data.countIgnore > 0) {
message += ",并忽略" + resp.data.countIgnore + "个格式错误的IP"
}
teaweb.success(message, function () {
teaweb.reload()
})
}