From c0750ed493ce351d92bdec50b3723f1869b5f566 Mon Sep 17 00:00:00 2001 From: yangchunlong <292345300@qq.com> Date: Tue, 21 Oct 2025 16:33:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9A=80=20=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/modules/auth.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/stores/modules/auth.ts b/src/stores/modules/auth.ts index 6d9e08b..e8370ce 100644 --- a/src/stores/modules/auth.ts +++ b/src/stores/modules/auth.ts @@ -95,7 +95,6 @@ export const useAuthStore = defineStore({ // 构建页面与按钮的映射关系 buildPageButtonMap() { const pageButtonMap: PageButtonMap = {}; - // 递归处理路由,建立页面与按钮的关联 const processRoutes = (routes: any[], parentPageName?: string) => { routes.forEach((route: any) => { @@ -105,7 +104,6 @@ export const useAuthStore = defineStore({ if (!pageButtonMap[route.name]) { pageButtonMap[route.name] = []; } - // 处理子节点中的按钮权限 if (route.children && route.children.length > 0) { route.children.forEach((child: any) => { @@ -126,7 +124,6 @@ export const useAuthStore = defineStore({ } }); }; - processRoutes(this.authMenuList); this.pageButtonMap = pageButtonMap; },