config.js
557 Bytes
export default {
method: 'post',
// 开发环境
// baseURL:'http://119.23.236.11/',
// baseURL:'http://htyh.daofen100.com/',
//baseURL: 'http://8.135.99.57:8880/',
baseURL: 'https://api.youdiany.com/',
// 请求头信息
headers: {
'Content-Type': 'application/json;charset=UTF-8'
/* 'X-Requested-With': 'XMLHttpRequest',
'Access-Control-Allow-Origin':'*' */
},
// 参数
data: {},
// 设置超时时间
timeout: 10000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
}