The request uri is /post?conditions%5Btype%5D=0 which decoded to /post?conditions[type]=0. However, This query of request will be ignored by Koa2 bodyParser.
/post?conditions={"type":0} works fine using POSTMAN, but vue-resource translates it to /post?conditions[type]=0, too
I tried the $resource but still failed. It seems that any input url will be converted by vue-resource. How can I get the correct JSON query uri?
Maybe I'm missing something, but it seems that vue-resource translates the JSON query params to wrong url
Sample code is above.
The request uri is
/post?conditions%5Btype%5D=0
which decoded to/post?conditions[type]=0
. However, This query of request will be ignored by Koa2 bodyParser./post?conditions={"type":0}
works fine using POSTMAN, but vue-resource translates it to/post?conditions[type]=0
, tooI tried the
$resource
but still failed. It seems that any input url will be converted by vue-resource. How can I get the correct JSON query uri?