import Request from './core'
export * from './core'
const baseUrl = import.meta.env.VITE_APP_BASE_URL

const request = new Request({
  baseURL: baseUrl,
  timeout: 60 * 1000,
  headers: {},
  extraConfig: {
    /** 这里是核心配置，一般不需要再去修改request/core.ts */
    tokenKey: 'Authorization',
    getToken: () => localStorage.getItem('Authorization') || '',
  },
})

export default request
