GuLiMmo
2023-11-29 7d9fb50b4e444ba3afec098ad031e93b4e9ee9ee
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,
})