소스 검색

fix: fix geader menu activation path (#5997)

Co-authored-by: 王泳超 <wangyongchao@testor.com.cn>
wyc001122 5 달 전
부모
커밋
b148b8ec92
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/effects/layouts/src/basic/menu/use-mixed-menu.ts

+ 1 - 1
packages/effects/layouts/src/basic/menu/use-mixed-menu.ts

@@ -74,7 +74,7 @@ function useMixedMenu() {
    */
   const headerActive = computed(() => {
     if (!needSplit.value) {
-      return route.path;
+      return route.meta?.activePath ?? route.path;
     }
     return rootMenuPath.value;
   });