瀏覽代碼

fix: fix geader menu activation path (#5997)

Co-authored-by: 王泳超 <wangyongchao@testor.com.cn>
wyc001122 3 周之前
父節點
當前提交
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;
   });