From b2a1951fd00433cb5e1c9dce982c53a9c9edd874 Mon Sep 17 00:00:00 2001 From: Vben Date: Sat, 20 Mar 2021 21:48:47 +0800 Subject: [PATCH] fix(menu): ensure the menu has meta attributes close #397 --- src/router/helper/menuHelper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router/helper/menuHelper.ts b/src/router/helper/menuHelper.ts index 4b201310c..ba2f2c857 100644 --- a/src/router/helper/menuHelper.ts +++ b/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,