From ef89427017b3cf79dc8432e73a0a585200c9bcb4 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Fri, 24 Mar 2023 10:18:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E6=96=87=E4=BB=B6=E5=A4=B9=E6=97=B6?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=93=8D=E5=BA=94=E4=B8=8D=E5=8F=8A?= =?UTF-8?q?=E6=97=B6=E5=AF=BC=E8=87=B4=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/dataset/group/Group.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/dataset/group/Group.vue b/frontend/src/views/dataset/group/Group.vue index 822cec1e01..114ac16388 100644 --- a/frontend/src/views/dataset/group/Group.vue +++ b/frontend/src/views/dataset/group/Group.vue @@ -570,6 +570,7 @@ export default { data() { return { sceneMode: false, + saveGroupLoading: false, treeLoading: false, dialogTitle: '', search: '', @@ -859,12 +860,16 @@ export default { saveGroup(group) { this.$refs['groupForm'].validate((valid) => { if (valid) { + if (this.saveGroupLoading) return + this.saveGroupLoading = true addGroup(group).then((res) => { this.close() this.openMessageSuccess('dataset.save_success') this.expandedArray.push(group.pid) const opt = group.id ? 'rename' : 'new' updateCacheTree(opt, 'dataset-tree', res.data, this.tData) + }).finally(() => { + this.saveGroupLoading = false }) } else { return false