mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
* feat(client,sdk): improve api client * feat: add test cases * docs: update doc * fix(sdk): cannot destructure property 'authClass' of 'instance' as it is undefined
11 lines
213 B
TypeScript
11 lines
213 B
TypeScript
import { APIClient } from '@nocobase/client';
|
|
|
|
const apiClient = new APIClient({
|
|
baseURL: process.env.API_BASE_URL,
|
|
headers: {
|
|
'X-Hostname': window?.location?.hostname,
|
|
},
|
|
});
|
|
|
|
export default apiClient;
|