소스 검색

fix(menu): ensure the menu has meta attributes close #397

Vben 4 년 전
부모
커밋
b2a1951fd0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/router/helper/menuHelper.ts

+ 1 - 0
src/router/helper/menuHelper.ts

@@ -54,6 +54,7 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) {
 
       return {
         ...(node.meta || {}),
+        meta: node.meta,
         name: title,
         hideMenu,
         path: node.path,