From c46a55e9c44a795f6c4aa07ad029f05413826232 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Wed, 20 Nov 2024 13:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/user/login/index.ts | 4 ++-- frontend/src/routers/index.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/api/user/login/index.ts b/frontend/src/api/user/login/index.ts index 4f9ef65..70dad1f 100644 --- a/frontend/src/api/user/login/index.ts +++ b/frontend/src/api/user/login/index.ts @@ -12,12 +12,12 @@ export const loginApi = (params: Login.ReqLoginForm) => { } // 获取菜单列表 export const getAuthMenuListApi = () => { - return http.get(`${rePrefix}/menu/list`, {}, { loading: false }) + return http.get(`/sysFunction/getMenu`, {}, { loading: false }) // return http.post(`/Register2`, {}, { loading: false }) } // 获取按钮权限 export const getAuthButtonListApi = () => { - return http.get(`${rePrefix}/auth/buttons`, {}, { loading: false }) + return http.get(`/sysFunction/getButton`, {}, { loading: false }) // return http.post(`/Register3`, {}, { loading: false }) } // 用户退出登录 diff --git a/frontend/src/routers/index.ts b/frontend/src/routers/index.ts index 3d7aa48..b57af3a 100644 --- a/frontend/src/routers/index.ts +++ b/frontend/src/routers/index.ts @@ -69,7 +69,6 @@ router.beforeEach(async (to, from, next) => { await initDynamicRouter() return next({ ...to, replace: true }) } - // 7.存储 routerName 做按钮权限筛选 authStore.setRouteName(to.name as string)