From 75ff82f1b43a203443d1b8617985942222d8259c Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sat, 16 Apr 2022 20:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9F=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/store/modules/permission.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kicc-ui/src/store/modules/permission.ts b/kicc-ui/src/store/modules/permission.ts index 97af4f40..63e47f27 100644 --- a/kicc-ui/src/store/modules/permission.ts +++ b/kicc-ui/src/store/modules/permission.ts @@ -111,13 +111,14 @@ export const usePermissionStore = defineStore({ /** 构建菜单与路由 */ let routeList: AppRouteRecordRaw[] = []; try { - let routeList: AppRouteRecordRaw[] = (await getMenuList()) as AppRouteRecordRaw[]; + routeList = (await getMenuList()) as AppRouteRecordRaw[]; transformObjToRoute(routeList); const menuList = transformRouteToMenu(routeList); this.setMenuList(menuList); // 过滤忽略路由配置项,只构建菜单不构建路由 routeList = filter(routeList, routeRemoveIgnoreFilter); patchHomeAffix(routeList); + console.log(routeList); } catch (error) { console.error(error); } return routeList; }