fix: wrap fetch for injecting headers

This commit is contained in:
jialin
2026-06-03 15:50:06 +08:00
committed by jialin
parent 39374eafda
commit 9705818b15
5 changed files with 78 additions and 59 deletions
+3
View File
@@ -21,3 +21,6 @@ export const extraRequestInterceptors: RequestInterceptor[] = [];
export type ResponseInterceptor = (response: any) => any;
export const extraResponseInterceptors: ResponseInterceptor[] = [];
export const getTenantHeaders = (
_method?: string
): Record<string, string> => ({});