Skip to content

Commit

Permalink
fix(route): 当为左侧混合菜单时activeMenu无效情况
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbowe committed May 17, 2022
1 parent ebd16a4 commit 3e4f9e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const firstDegreeMenus = computed(() =>
function getActiveParentRouteName() {
firstDegreeMenus.value.some(item => {
const routeName = route.name as string;
const routeName = (route.meta?.activeMenu ? route.meta.activeMenu : route.name) as string;
const flag = routeName?.includes(item.routeName);
if (flag) {
setActiveParentRouteName(item.routeName);
Expand Down

0 comments on commit 3e4f9e2

Please sign in to comment.