首先500是服務器內部錯誤
postman測試正常
瀏覽器報
Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
查看request
參數使用JSON.stringify(data),轉化為json格式
let data={
"xxx
}
me.$u.post('/xxxx', JSON.stringify(data))
.then(res => {
console.log(res.data);
if (res.code == 200) {
this.sxxx=res.data.xxx;
} else {
}
}).catch(e => {
});