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.
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* axios 配置文件
|
|
|
|
* @author yujialong
|
|
|
|
*/
|
|
|
|
|
|
|
|
export default {
|
|
|
|
baseURL: 'http://192.168.31.151:9000/',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
},
|
|
|
|
data: {},
|
|
|
|
method: 'POST',
|
|
|
|
responseType: 'json', // 响应数据类型
|
|
|
|
withCredentials: false, // 携带cookie
|
|
|
|
// ======================== 以下为注入axios的配置项 =============================
|
|
|
|
showLoading: true, // 是否显示加载动画
|
|
|
|
isFormData: false // 是否序列化表单数据
|
|
|
|
}
|