From c8ab143640abedff60c80e9d38deccfda88cba6c Mon Sep 17 00:00:00 2001 From: yangjiang Date: Thu, 4 May 2023 17:44:38 +0800 Subject: [PATCH] fix: route --- src/router/helper/routeHelper.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/router/helper/routeHelper.ts b/src/router/helper/routeHelper.ts index 82b0deca..94b5a314 100644 --- a/src/router/helper/routeHelper.ts +++ b/src/router/helper/routeHelper.ts @@ -51,6 +51,9 @@ function asyncImportRoute(routes: AppRouteRecordRaw[] | undefined) { const meta = item.meta || {} meta.title = item.name meta.icon = item.icon + meta.hideMenu = !item.visible + meta.orderNo = item.sort + meta.ignoreKeepAlive = !item.keepAlive item.meta = meta children && asyncImportRoute(children) })