feat: request && login && router【e6939e22】(不包括 login.vue 和 request.ts)
This commit is contained in:
@@ -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;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user