fix: 🐛 补充 basePath 父级路径
Former-commit-id: cce921b52b3f93fb9be8d9619c788a5b1b585fe9
This commit is contained in:
@@ -38,12 +38,11 @@ watch(
|
||||
mixLeftMenu.value = item.children || [];
|
||||
}
|
||||
});
|
||||
console.log(" mixLeftMenu.value ", mixLeftMenu.value);
|
||||
// if (mixLeftMenu.value.length) {
|
||||
// router.push({
|
||||
// path: mixLeftMenu.value[0].path,
|
||||
// });
|
||||
// }
|
||||
if (mixLeftMenu.value) {
|
||||
router.push({
|
||||
path: mixLeftMenu.value[0].path,
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
deep: true,
|
||||
@@ -94,7 +93,8 @@ function handleOutsideClick() {
|
||||
<template v-if="layout === 'mix'">
|
||||
<div class="mix-wrap">
|
||||
<!-- :menu-list="mixLeftMenu -->
|
||||
<LeftMenu :menu-list="permissionStore.routes" />
|
||||
<!-- :menu-list="permissionStore.routes -->
|
||||
<LeftMenu :menu-list="mixLeftMenu" :base-path="activeTopMenu" />
|
||||
<Main />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user