This commit is contained in:
zhoutianchi
2026-03-10 11:33:59 +08:00
parent 4a76ec3e26
commit f53c65224b
2 changed files with 72 additions and 72 deletions

View File

@@ -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) {