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

29 lines
550 B
TypeScript
Raw Normal View History

2022-07-19 22:33:54 +08:00
const config: {
2022-08-03 16:01:06 +08:00
base_url: string
2022-07-19 22:33:54 +08:00
result_code: number | string
default_headers: AxiosHeaders
request_timeout: number
} = {
/**
* api请求基础路径
*/
2022-08-03 16:01:06 +08:00
base_url: import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL,
2022-07-19 22:33:54 +08:00
/**
*
*/
result_code: 200,
/**
*
*/
request_timeout: 30000,
/**
*
* application/x-www-form-urlencoded multipart/form-data
*/
default_headers: 'application/json'
}
export { config }