登录时,直接从用户信息中,获取菜单。目的:加快首页的加载速度

(cherry picked from commit ee802d6335)
This commit is contained in:
YunaiV
2023-07-29 09:28:45 +08:00
committed by shizhong
parent 9fd5a9d7f4
commit 4cef3e3e5f
3 changed files with 2 additions and 9 deletions

View File

@ -37,11 +37,6 @@ export const getInfoApi = () => {
return request.get({ url: '/system/auth/get-permission-info' })
}
// 路由
export const getAsyncRoutesApi = () => {
return request.get({ url: '/system/auth/list-menus' })
}
//获取登录验证码
export const sendSmsCodeApi = (data: SmsCodeVO) => {
return request.post({ url: '/system/auth/send-sms-code', data })