问题:跨域
情况:(‘hello/doLogin’ , this.loginForm) 连接符应该是 , 号,但是源文件是以加号+拼接
源文件
async doLogin() {
await instance.post(‘hello/doLogin’ + this.loginForm).then(res => {
console.log(“res@@@@@@@@@”,res);
location.assign("./index.html")
})
}
修改后
async doLogin() {
await instance.post(‘hello/doLogin’ , this.loginForm).then(res => {
console.log(“res@@@@@@@@@”,res);
location.assign("./index.html")
})
}