refactor(projects): mock权限相关数据优化

This commit is contained in:
Soybean
2022-04-26 00:12:20 +08:00
parent 5c75e9d958
commit 41e46a5d80
12 changed files with 915 additions and 17 deletions

View File

@ -4,10 +4,10 @@ declare namespace Auth {
* 用户角色类型(前端静态路由用角色类型进行路由权限的控制)
* - super: 超级管理员(该权限具有所有路由数据)
* - admin: 管理员
* - test: 测试
* - normal: 普通用户
* - user: 用户
* - custom: 自定义角色
*/
type RoleType = 'super' | 'admin' | 'test' | 'normal';
type RoleType = keyof typeof import('@/enum').EnumUserRole;
/** 用户信息 */
interface UserInfo {