mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-21 02:43:34 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
12 lines
315 B
TypeScript
12 lines
315 B
TypeScript
import type { AxiosConfig } from '@/types'
|
|
|
|
/** axios 相关配置 */
|
|
export const AXIOS_CONFIG: AxiosConfig = {
|
|
baseURL: '', // `const { MODE } = getAppEnvironment()`,
|
|
withCredentials: false, // 是否允许跨域携带 `cookie`
|
|
timeout: 5 * 1000,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
}
|