mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-02 00:53:22 +08:00
feat(role): 添加角色管理相关常量并优化角色状态切换
refactor(role): 使用常量替换硬编码的角色ID和key fix(role): 修正角色排序默认值为1 feat(component): 导出ApiSwitch全局组件
This commit is contained in:
@@ -41,6 +41,16 @@ export const UNAUTHORIZED_CODE = 401;
|
||||
* 超管用户ID
|
||||
*/
|
||||
export const SUPERADMIN_USER_ID = 1;
|
||||
export const SUPERADMIN_ROLE_ID = 1;
|
||||
|
||||
/**
|
||||
* 超管角色key
|
||||
*/
|
||||
export const SUPERADMIN_ROLE_KEY = 'superadmin';
|
||||
/**
|
||||
* 管理员(非超管) 角色key
|
||||
*/
|
||||
export const ADMIN_ROLE_KEY = 'admin';
|
||||
|
||||
/**
|
||||
* 对应 字典-S系统开关的状态
|
||||
|
||||
Reference in New Issue
Block a user