FlowPacs/yudao-ui-admin-vue3/src/config/axios/config.ts

47 lines
763 B
TypeScript
Raw Normal View History

2022-07-19 22:33:54 +08:00
const config: {
base_url: {
base: string
dev: string
pro: string
test: string
}
result_code: number | string
default_headers: AxiosHeaders
request_timeout: number
} = {
/**
* api请求基础路径
*/
base_url: {
// 开发环境接口前缀
base: '',
// 打包开发环境接口前缀
dev: '',
// 打包生产环境接口前缀
pro: '',
// 打包测试环境接口前缀
test: ''
},
/**
*
*/
result_code: 200,
/**
*
*/
request_timeout: 30000,
/**
*
* application/x-www-form-urlencoded multipart/form-data
*/
default_headers: 'application/json'
}
export { config }