前端报400错误
来源:3-10 前端代码如何使用

weisy
2020-03-22
VM497 asdebug.js:1 GET http://127.0.0.1:8012/shares/q?pageNo=1&title= 400
v @ VM497 asdebug.js:1
createRequestTask @ VM497 asdebug.js:1
n @ VM497 asdebug.js:1
o @ VM499 WAService.js:4
u @ VM499 WAService.js:4
r @ VM499 WAService.js:10
e @ VM499 WAService.js:10
(anonymous) @ VM499 WAService.js:10
(anonymous) @ VM499 WAService.js:4
(anonymous) @ vendor.js? [sm]:163
Promise @ vendor.js? [sm]:9128
request @ vendor.js? [sm]:162
_callee3$ @ main.js? [sm]:219
tryCatch @ vendor.js? [sm]:9653
invoke @ vendor.js? [sm]:9887
prototype.(anonymous function) @ vendor.js? [sm]:9705
step @ vendor.js? [sm]:5851
(anonymous) @ vendor.js? [sm]:5869
Promise @ vendor.js? [sm]:9128
(anonymous) @ vendor.js? [sm]:5848
fetchSharePosts @ main.js? [sm]:206
boundFn @ vendor.js? [sm]:392
onShow @ main.js? [sm]:289
callHook$1 @ vendor.js? [sm]:5152
onShow @ vendor.js? [sm]:5437
(anonymous) @ VM499 WAService.js:18
U @ VM499 WAService.js:18
K @ VM499 WAService.js:18
(anonymous) @ VM499 WAService.js:18
(anonymous) @ VM499 WAService.js:18
(anonymous) @ VM499 WAService.js:5
(anonymous) @ VM499 WAService.js:5
(anonymous) @ VM499 WAService.js:4
n @ VM497 asdebug.js:1
(anonymous) @ VM497 asdebug.js:1
(anonymous) @ VM497 asdebug.js:1
_ws.onmessage @ VM497 asdebug.js:1
Show 7 more frames
vendor.js? [sm]:172 请求结果 {data: {…}, header: {…}, statusCode: 400, cookies: Array(0), errMsg: “request:ok”}
vendor.js? [sm]:160 url http://127.0.0.1:8012/shares/q method GET data {pageNo: 1, title: “1”}
vendor.js? [sm]:161 token
我的没有 http://127.0.0.1:8012/shares/q 路径呀,我的是 http://127.0.0.1:8012/shares/…1
2回答
-
weisy
提问者
2020-03-23
我都不知道/q从哪里来,我没有写这路径,只有/shares
012020-03-23 -
大目
2020-03-23
如果您的路径不是/shares/q的话,可以自行修改一下路径,文件如下:
00
相似问题