tianji/packages/client-sdk/src/config.ts
2024-05-11 14:43:02 +08:00

6 lines
168 B
TypeScript

import { OpenAPI } from './open/client';
export function initOpenapiSDK(baseUrl: string) {
OpenAPI.BASE = baseUrl.endsWith('/open') ? baseUrl : `${baseUrl}/open`;
}