feat(@vben/web-antd): 项目管理前端页面和请求拦截器适配

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lzh
2026-04-16 23:08:25 +08:00
parent 5faaa3c051
commit 44b2dd9d05
6 changed files with 485 additions and 0 deletions

View File

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