From e0252eb997e8ece6088360f837cb3f532b93a73f Mon Sep 17 00:00:00 2001 From: chenxing Date: Fri, 11 Sep 2026 10:14:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(user):=20=E7=BC=96=E8=BE=91=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E3=80=8C=E6=89=80=E5=9C=A8=E7=BB=84=E3=80=8D=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=8E=BB=E6=8E=89=E5=88=86=E9=9A=94=E7=AC=A6=E4=B8=A4?= =?UTF-8?q?=E4=BE=A7=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit groupOptions 拍平组织树时完整路径分隔符由 " / " 改为 "/", 使所在组显示为 教育云中心/信阳教育局/…/202601。 --- src/views/group-user/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/group-user/index.vue b/src/views/group-user/index.vue index 7239d58..beb10e4 100644 --- a/src/views/group-user/index.vue +++ b/src/views/group-user/index.vue @@ -110,8 +110,8 @@ const groupOptions = computed(() => { const flat: { id: number; name: string }[] = []; const walk = (list: any[], prefix = '') => { list.forEach(n => { - flat.push({ id: n.id, name: prefix ? `${prefix} / ${n.name}` : n.name }); - if (n.children?.length) walk(n.children, prefix ? `${prefix} / ${n.name}` : n.name); + flat.push({ id: n.id, name: prefix ? `${prefix}/${n.name}` : n.name }); + if (n.children?.length) walk(n.children, prefix ? `${prefix}/${n.name}` : n.name); }); }; walk(treeData.value);