过滤文本框内的空行

This commit is contained in:
lanrenwo 2023-12-04 13:44:06 +08:00
parent 3d03f6adb8
commit 7c040e2a0f
1 changed files with 4 additions and 1 deletions

View File

@ -346,7 +346,7 @@
@click.prevent="addDomain(ruleForm.link_acl)"></el-button>
</el-col>
</el-row>
<el-row v-for="(item,index) in ruleForm.link_acl"
:key="index" style="margin-bottom: 5px" :gutter="5">
<el-col :span="11">
@ -697,6 +697,9 @@ export default {
let arr = [];
for (let i = 0; i < ipList.length; i++) {
let item = ipList[i];
if (item.trim() === "") {
continue;
}
let ip = item.split(",");
if (ip.length > 2) {
ip[1] = ip.slice(1).join(",");