You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
721 B
22 lines
721 B
const domain = 'http://120.24.146.68:6676'
|
|
// const config = {
|
|
// baseUrl: `${domain}/api`,
|
|
// siteUrl: domain
|
|
// }
|
|
|
|
|
|
const config = {
|
|
siteUrl: domain,
|
|
baseUrl: `${domain}/api`, // 请求的本域名
|
|
showLoading: true, // 是否显示请求中的loading
|
|
loadingText: '请求中...', // 请求loading中的文字提示
|
|
loadingTime: 800, // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
|
|
originalData: false, // 是否在拦截器中返回服务端的原始数据
|
|
loadingMask: true, // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
|
|
// 配置请求头信息
|
|
header: {
|
|
'content-type': 'application/json;charset=UTF-8'
|
|
},
|
|
}
|
|
|
|
export default config
|
|
|