上传
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
const config = {
|
||||
// 基础请求地址
|
||||
baseUrl: '',
|
||||
// 请求超时时间(ms)
|
||||
timeout: 15000,
|
||||
// 上传文件地址
|
||||
uploadUrl: '',
|
||||
// token 存储键名
|
||||
tokenKey: 'token',
|
||||
// 用户信息存储键名
|
||||
userInfoKey: 'userInfo',
|
||||
// 默认分页大小
|
||||
pageSize: 10,
|
||||
}
|
||||
|
||||
// #ifdef H5
|
||||
config.baseUrl = '/api'
|
||||
// #endif
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
config.baseUrl = 'https://qhse.cncecoa.com/qhse_webapi/api'
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
config.baseUrl = 'https://your-api-domain.com/api'
|
||||
// #endif
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user