mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 15:56:43 +08:00
过滤文本框内的空行
This commit is contained in:
@@ -346,7 +346,7 @@
|
|||||||
@click.prevent="addDomain(ruleForm.link_acl)"></el-button>
|
@click.prevent="addDomain(ruleForm.link_acl)"></el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row v-for="(item,index) in ruleForm.link_acl"
|
<el-row v-for="(item,index) in ruleForm.link_acl"
|
||||||
:key="index" style="margin-bottom: 5px" :gutter="5">
|
:key="index" style="margin-bottom: 5px" :gutter="5">
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
@@ -697,6 +697,9 @@ export default {
|
|||||||
let arr = [];
|
let arr = [];
|
||||||
for (let i = 0; i < ipList.length; i++) {
|
for (let i = 0; i < ipList.length; i++) {
|
||||||
let item = ipList[i];
|
let item = ipList[i];
|
||||||
|
if (item.trim() === "") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let ip = item.split(",");
|
let ip = item.split(",");
|
||||||
if (ip.length > 2) {
|
if (ip.length > 2) {
|
||||||
ip[1] = ip.slice(1).join(",");
|
ip[1] = ip.slice(1).join(",");
|
||||||
|
Reference in New Issue
Block a user