This commit is contained in:
zhoutc
2026-03-09 01:31:30 +08:00
parent 236e5f5594
commit 8575b5e0b1
3 changed files with 17 additions and 7 deletions

View File

@@ -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;
}