This commit is contained in:
qsh
2025-05-12 14:11:54 +08:00
parent e71c9928a2
commit f6e98e71e2
385 changed files with 45604 additions and 14 deletions

View File

@@ -0,0 +1,28 @@
const config: {
base_url: string
result_code: number | string
default_headers: AxiosHeaders
request_timeout: number
} = {
/**
* api请求基础路径
*/
base_url: import.meta.env.VITE_API_BASEPATH,
/**
* 接口成功返回状态码
*/
result_code: 200,
/**
* 接口请求超时时间
*/
request_timeout: 30000,
/**
* 默认接口请求类型
* 可选值application/x-www-form-urlencoded multipart/form-data
*/
default_headers: 'application/json'
}
export { config }