We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c03616 commit 33bdd29Copy full SHA for 33bdd29
1 file changed
src/layouts/components/Header.vue
@@ -116,13 +116,14 @@ const toggleSettingPanel = () => {
116
};
117
118
const active = computed(() => {
119
+ const { layout } = props;
120
const route = useRoute();
121
if (!route.path) {
122
return '';
123
}
124
return route.path
125
.split('/')
- .filter((item, index) => index <= props.maxLevel && index > 0)
126
+ .filter((item, index) => index < props.maxLevel - (layout === 'mix' ? 1 : -1) && index > 0)
127
.map((item) => `/${item}`)
128
.join('');
129
});
0 commit comments