ray-template/apps/admin/src/app-config/request-config.ts
XiaoDaiGua-Ray 403fdd589a feat!: rebuild Ray Template as a monorepo
Share workspace packages between Ray Admin and the interactive docs.

BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
2026-11-04 14:01:28 +08:00

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',
},
}