ludu-admin-vue3/src/config/axios/config.ts

29 lines
550 B
TypeScript
Raw Normal View History

const config: {
base_url: string
result_code: number | string
default_headers: AxiosHeaders
request_timeout: number
} = {
/**
* api请求基础路径
*/
base_url: import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL,
/**
*
*/
result_code: 200,
/**
*
*/
request_timeout: 30000,
/**
*
* application/x-www-form-urlencoded multipart/form-data
*/
default_headers: 'application/json'
}
export { config }