From 18952197871753515bb2e346910b4cf10ea19d68 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 20 Feb 2023 17:40:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E7=AB=99=EF=BC=8C=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=BD=91=E7=AB=99=E5=88=86=E7=BB=84=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=A4=9A=E4=B8=AA=E5=88=86=E7=BB=84=E5=A4=84?= =?UTF-8?q?=E4=BA=8E=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/website/website/group/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frontend/src/views/website/website/group/index.vue b/frontend/src/views/website/website/group/index.vue index eb3d2d301..587bfa94f 100644 --- a/frontend/src/views/website/website/group/index.vue +++ b/frontend/src/views/website/website/group/index.vue @@ -112,6 +112,14 @@ const acceptParams = async () => { }; const openCreate = () => { + for (const d of data.value) { + if (d.name == '') { + return; + } + if (d.edit) { + d.edit = false; + } + } const g = { id: 0, name: '', @@ -135,6 +143,15 @@ const deleteGroup = (index: number) => { }; const editGroup = (index: number) => { + for (const i in data.value) { + const d = data.value[i]; + if (d.name == '') { + data.value.splice(Number(i), 1); + } + if (d.edit) { + d.edit = false; + } + } data.value[index].edit = true; };