From 40b7e12eaa9d4a35d7a9de099999b14b8fce0bff Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 28 Mar 2023 20:36:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=B7=E5=90=88?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E4=B8=8B=E6=89=93=E5=BC=80`showLink:false`?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B9=B6=E5=88=B7=E6=96=B0=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E5=AF=BC=E8=88=AA=E6=A0=8F=E4=B8=80=E7=9B=B4?= =?UTF-8?q?=E5=A4=84=E4=BA=8E=E5=8A=A0=E8=BD=BD=E7=8A=B6=E6=80=81=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/sidebar/vertical.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/layout/components/sidebar/vertical.vue b/src/layout/components/sidebar/vertical.vue index c25a00539..1cd9d4364 100644 --- a/src/layout/components/sidebar/vertical.vue +++ b/src/layout/components/sidebar/vertical.vue @@ -27,6 +27,10 @@ const menuData = computed(() => { : usePermissionStoreHook().wholeMenus; }); +const loading = computed(() => + pureApp.layout === "mix" ? false : menuData.value.length === 0 ? true : false +); + function getSubMenuData(path: string) { // path的上级路由组成的数组 const parentPathArr = getParentPaths( @@ -61,7 +65,7 @@ watch(