You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
* @description 导出默认网路配置
|
|
|
|
|
**/
|
|
|
|
|
const network = {
|
|
|
|
|
// 默认的接口地址 如果是开发环境和生产环境走vab-mock-server,当然你也可以选择自己配置成需要的接口地址
|
|
|
|
|
baseURL:
|
|
|
|
|
process.env.NODE_ENV === 'development'
|
|
|
|
|
? 'http://192.168.10.142:8097/fu-hsi-server'
|
|
|
|
|
: '/fuHsiApi',
|
|
|
|
|
// 配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
|
|
|
|
|
contentType: 'application/json;charset=UTF-8',
|
|
|
|
|
// 消息框消失时间
|
|
|
|
|
messageDuration: 3000,
|
|
|
|
|
// 最长请求时间
|
|
|
|
|
requestTimeout: 1200000000,
|
|
|
|
|
// 操作正常code,支持String、Array、int多种类型
|
|
|
|
|
successCode: [200, 0],
|
|
|
|
|
// 登录失效code
|
|
|
|
|
invalidCode: 320,
|
|
|
|
|
// 后台接口请求报错code
|
|
|
|
|
requestError: 500,
|
|
|
|
|
// 无权限code
|
|
|
|
|
noPermissionCode: 401,
|
|
|
|
|
// 接口是否加密
|
|
|
|
|
encrypt: true
|
|
|
|
|
}
|
|
|
|
|
module.exports = network
|