feat: Improve the front-end and back-end permission mode and useAccess

This commit is contained in:
vben
2024-07-06 13:28:08 +08:00
parent 4dbd13d48d
commit 37a4f971c8
27 changed files with 522 additions and 79 deletions

View File

@@ -18,4 +18,11 @@ async function getUserInfo() {
return requestClient.get<UserInfo>('/auth/getUserInfo');
}
export { getUserInfo, userLogin };
/**
* 获取用户权限码
*/
async function getAccessCodes() {
return requestClient.get<string[]>('/auth/getAccessCodes');
}
export { getAccessCodes, getUserInfo, userLogin };