1
This commit is contained in:
@@ -14,7 +14,7 @@ export enum CommonHeaderEnum {
|
||||
'ENC_FLAG' = 'Enc-Flag',
|
||||
'AUTHORIZATION' = 'Authorization',
|
||||
'VERSION' = 'VERSION',
|
||||
'ROLE_CODE' = 'ROLE_CODE',
|
||||
'RCODE' = 'RCODE',
|
||||
'RRID' = 'RRID',
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ service.interceptors.request.use(
|
||||
//统一增加 当前角色CODE
|
||||
const roleCode = Session.getRoleCode();
|
||||
if (roleCode && !(config as any).skipRoleHeader) {
|
||||
config.headers![CommonHeaderEnum.ROLE_CODE] = roleCode;
|
||||
config.headers![CommonHeaderEnum.RCODE] = roleCode;
|
||||
}
|
||||
const roleId = Session.getRoleId();
|
||||
if (roleId && !(config as any).skipRoleHeader) {
|
||||
|
||||
Reference in New Issue
Block a user