parent
ec49a04151
commit
cdeadafda5
|
@ -30,7 +30,7 @@ async function handleSelect(key: string) {
|
|||
<Menu
|
||||
:accordion="accordion"
|
||||
:collapse="collapse"
|
||||
:default-active="route.path"
|
||||
:default-active="route.meta?.activePath || route.path"
|
||||
:menus="menus"
|
||||
:rounded="rounded"
|
||||
:theme="theme"
|
||||
|
|
|
@ -81,7 +81,7 @@ function useExtraMenu() {
|
|||
watch(
|
||||
() => route.path,
|
||||
(path) => {
|
||||
const currentPath = path;
|
||||
const currentPath = route.meta?.activePath || path;
|
||||
// if (preferences.sidebar.expandOnHover) {
|
||||
// return;
|
||||
// }
|
||||
|
|
|
@ -113,7 +113,7 @@ function useMixedMenu() {
|
|||
|
||||
// 初始化计算侧边菜单
|
||||
onBeforeMount(() => {
|
||||
calcSideMenus();
|
||||
calcSideMenus(route.meta?.activePath || route.path);
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue