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});