Commit 277b8c70 authored by derong.zhang's avatar derong.zhang

优化ipset修改逻辑

parent 0183bdf0
......@@ -1661,6 +1661,9 @@ export default {
});
return
}
if (this.updataIpsetSta) {
this.ipsetData[this.updateconfigindex].ip_list = this.ipsetContent
} else {
let keys = this.ipsetData.some(item => {
return item.name === this.ipsetName
})
......@@ -1671,14 +1674,10 @@ export default {
});
return
}
if (this.updataIpsetSta) {
this.ipsetData[this.updateconfigindex].ip_list = this.ipsetContent
} else {
let str = this.ipsetContent;
this.ipsetData.push(
{
name: this.ipsetName,
ip_list: str,
ip_list: this.ipsetContent,
}
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment