Skip to content

Commit

Permalink
过滤文本框内的空行
Browse files Browse the repository at this point in the history
  • Loading branch information
lanrenwo committed Dec 4, 2023
1 parent 3d03f6a commit 7c040e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/pages/group/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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(",");
Expand Down

0 comments on commit 7c040e2

Please sign in to comment.