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(