From 2f1d0ccd78346206aeef44ecf44b7b735d897c6b Mon Sep 17 00:00:00 2001 From: lpq Date: Fri, 17 Feb 2023 22:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E5=B0=8F=E7=BB=84=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=AE=8C=E6=88=90=20=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=8A=BD=E5=B1=89=E5=90=8E=E6=B8=85=E7=A9=BA=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/SubsetManage.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/drawers/SubsetManage.vue b/src/components/drawers/SubsetManage.vue index c5fe2072..0908830e 100644 --- a/src/components/drawers/SubsetManage.vue +++ b/src/components/drawers/SubsetManage.vue @@ -143,6 +143,7 @@ export default { }; //添加小组 const addGroup = () => { + state.loading = true console.log("state.groupNum2", state.groupNum2); let obj = { pid: props.projectId, @@ -156,6 +157,11 @@ export default { message.success("小组添加成功"); props.getGroup && props.getGroup(); } + // 清空数据 + state.groupNum = null; + state.peopleNum = null; + state.groupNum2 = []; + state.loading = false }) .catch((err) => { console.log("随机分组失败", err);