feat(@vben/web-antd): 项目管理前端页面和请求拦截器适配
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,8 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
|
||||
config.headers['visit-tenant-id'] = tenantEnable
|
||||
? accessStore.visitTenantId
|
||||
: undefined;
|
||||
// 添加项目编号
|
||||
config.headers['project-id'] = accessStore.projectId;
|
||||
|
||||
// 是否 API 加密
|
||||
if ((config.headers || {}).isEncrypt) {
|
||||
@@ -182,6 +184,8 @@ baseRequestClient.addRequestInterceptor({
|
||||
config.headers['visit-tenant-id'] = tenantEnable
|
||||
? accessStore.visitTenantId
|
||||
: undefined;
|
||||
// 添加项目编号
|
||||
config.headers['project-id'] = accessStore.projectId;
|
||||
return config;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user