src/api/http/request.ts
@@ -7,6 +7,8 @@ import { ELocalStorageKey, ERouterName, EUserType } from '/@/types/enums' export * from './type' const { baseUrl: { apiBaseUrl } } = window.globalApiConfig const REQUEST_ID = 'X-Request-Id' function getAuthToken () { return localStorage.getItem(ELocalStorageKey.Token) @@ -16,7 +18,7 @@ headers: { 'Content-Type': 'application/json', }, baseURL: import.meta.env.VITE_BASE_API, baseURL: apiBaseUrl || import.meta.env.VITE_BASE_API, // timeout: 12000, })