From 19fb7e7af8464bc88088d8bbc80c481752827994 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 04 八月 2025 14:31:19 +0800 Subject: [PATCH] fix: 修改底层 --- src/store/modules/permission.ts | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index 2fc37a5..6aa2a72 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -3,7 +3,6 @@ // import { RouteConfigs } from "@/layout/types"; import { constantRoutes, Route } from '@/router'; import { addAsyncRoutes, ascending } from '@/router/utils'; -import * as baseModuleServices from '@/services/api/BaseModule'; export interface PermissonState { routes: Route[]; @@ -27,12 +26,10 @@ getModuleList() { return new Promise<Route[]>(async (resolve, reject) => { try { - // let res = await userApiClient.apiUserUserMenusGet(); - // let userMenuList = res.data.data; - // let userInfo = rootGetters['userInfo'] as Getter['userInfo']; - const res = await baseModuleServices.getCurrentUserModuleList({ - showLoading: false, - }); + // const res = await baseModuleServices.getCurrentUserModuleList({ + // showLoading: false, + // }); + const res = []; const accessedRoutes = ascending(addAsyncRoutes(formatModuleList(res, null))); // createAccessedRoutes(userMenuList, userInfo) //@ts-ignore accessedRoutes.push({ path: '/:pathMatch(.*)*', redirect: '/404', hidden: true }); -- Gitblit v1.9.1