mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
fix: 修复混合导航下打开showLink:false
页面并刷新后,左侧导航栏一直处于加载状态的问题
This commit is contained in:
parent
6ebcb0a259
commit
40b7e12eaa
@ -27,6 +27,10 @@ const menuData = computed(() => {
|
|||||||
: usePermissionStoreHook().wholeMenus;
|
: usePermissionStoreHook().wholeMenus;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const loading = computed(() =>
|
||||||
|
pureApp.layout === "mix" ? false : menuData.value.length === 0 ? true : false
|
||||||
|
);
|
||||||
|
|
||||||
function getSubMenuData(path: string) {
|
function getSubMenuData(path: string) {
|
||||||
// path的上级路由组成的数组
|
// path的上级路由组成的数组
|
||||||
const parentPathArr = getParentPaths(
|
const parentPathArr = getParentPaths(
|
||||||
@ -61,7 +65,7 @@ watch(
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-loading="menuData.length === 0"
|
v-loading="loading"
|
||||||
:class="['sidebar-container', showLogo ? 'has-logo' : '']"
|
:class="['sidebar-container', showLogo ? 'has-logo' : '']"
|
||||||
>
|
>
|
||||||
<Logo v-if="showLogo" :collapse="isCollapse" />
|
<Logo v-if="showLogo" :collapse="isCollapse" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user