speakeloudest e233c87fe6
Some checks failed
site-dist-deploy / build-and-deploy (push) Has been cancelled
first commit
2026-01-29 04:16:00 -08:00

17 lines
408 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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