1
This commit is contained in:
@@ -55,11 +55,11 @@ service.interceptors.request.use(
|
||||
}
|
||||
//统一增加 当前角色CODE
|
||||
const roleCode = Session.getRoleCode();
|
||||
if (roleCode) {
|
||||
if (roleCode && !(config as any).skipRoleHeader) {
|
||||
config.headers![CommonHeaderEnum.ROLE_CODE] = roleCode;
|
||||
}
|
||||
const roleId = Session.getRoleId();
|
||||
if (roleId) {
|
||||
if (roleId && !(config as any).skipRoleHeader) {
|
||||
config.headers![CommonHeaderEnum.RRID] = roleId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user