feat: request && login && router【e6939e22】(不包括 login.vue 和 request.ts)

This commit is contained in:
YunaiV
2025-03-20 12:34:02 +08:00
parent 83f6a0fbf7
commit 3c3886e345
15 changed files with 193 additions and 85 deletions

View File

@@ -67,6 +67,10 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
config.headers.Authorization = formatToken(accessStore.accessToken);
config.headers['Accept-Language'] = preferences.app.locale;
config.headers['tenant-id'] = 1
// TODO @芋艿:优化一下
// config.headers['tenant-id'] =
// tenantEnable && tenantId ? tenantId : undefined;
return config;
},
});