[問題] Vue axios post 時參數問題

作者: kiey (煉)   2019-08-25 14:24:52
Vue :
let oParams = {
sTest : this.sTest //test test
aTest: this.aTest //[1,2,3,4]
};
this.axios.post('/user/postUser', oParams, oResponse => {
...
});
Server :
sTest = 'test test' 沒問題
可是後端收到的
aTest 卻是 string "1,2,3,4"
想請問各位先進大大們知道原因嗎??
作者: pkro12345 (席龍)   2019-08-25 14:54:00
沒parse成json吧
作者: satanbaby (撒旦北鼻)   2019-08-25 22:22:00
你後端的code呢

Links booklink

Contact Us: admin [ a t ] ucptt.com