这个要怎么解决啊,求解 ` if (type === 'post') { config = { baseURL: '', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, withCredentials:true, url: url, method: type, }; Object.defineProperty(config, 'body', { value: JSON.stringify(data) }); console.log('axios config object is ', config); }
try{
const response = await ajax(config);
return response;
}catch(error){
throw new Error(error);
}
`
export const login = (username, password, captcha_code) => axios('/v2/login', { username, password, captcha_code }, 'post');
login(this.username, this.password, this.verifyCode).then( res => { console.log('login ', res); });

这个fields是个空值,但是当我用本地命令跑作者的项目的时候提交请求是能够拿到正常值的。然后我再想究竟是哪里出错了,感觉代理没有问题啊。