-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mock 无法拦截 带参数的 GET #109
Comments
我也遇到了get请求无法被拦截,不是vue的原因,我把所有有关vue的代码都注释了,问题依然存在。 |
我也遇到了相同的问题,使用的是 |
Mock 的正则没写对吧? |
我擦,尴尬 - -。对文档理解错了,现在改了正确的正则就好了 |
能帮贴个示例吗?我mock拦截不到vue-resource |
大写的GET不生效,用get |
文档上写的GET,然而只能小写╮(╯_╰)╭ |
我也遇到这样的问题,后来将路径改成正则就好了,如: |
比如:
this.$http.get('/board_list',{id:111}).then(res=>{ this.boardList=this.boardList.concat(res.data.result); })
调试显示这个错误
mock.js:8275 GET http://127.0.0.1:8080/board_list?id=111 404 (Not Found)
我是 vuejs 的。。。如果把 get 换成 post 是可以的
The text was updated successfully, but these errors were encountered: