From 3937d1eb6544cb56d543f245bb2aef9e75373300 Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Thu, 29 Jul 2021 17:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=84=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/group/List.vue | 49 ++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/web/src/pages/group/List.vue b/web/src/pages/group/List.vue index a398bf8..a765ff0 100644 --- a/web/src/pages/group/List.vue +++ b/web/src/pages/group/List.vue @@ -181,18 +181,20 @@ - + :key="index" style="margin-bottom: 5px" :gutter="10"> - + + + + @@ -202,18 +204,20 @@ - + :key="index" style="margin-bottom: 5px" :gutter="10"> - + + + + @@ -223,18 +227,20 @@ - + :key="index" style="margin-bottom: 5px" :gutter="10"> - + + + + @@ -244,13 +250,11 @@ - + :key="index" style="margin-bottom: 5px" :gutter="5"> @@ -262,9 +266,13 @@ - + + + + @@ -389,13 +397,16 @@ export default { console.log(error); }); }, - removeDomain(arr, item) { - console.log(item) + removeDomain(arr, index) { + console.log(index) + if (index >= 0 && index < arr.length) { + arr.splice(index, 1) + } // let index = arr.indexOf(item); // if (index !== -1 && arr.length > 1) { // arr.splice(index, 1) // } - arr.pop() + // arr.pop() }, addDomain(arr) { arr.push({val: "", action: "allow", port: 0});