Skip to content
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

POST请求带query参数时,拦截不到请求 #29

Closed
cxy930123 opened this issue Jun 11, 2021 · 0 comments
Closed

POST请求带query参数时,拦截不到请求 #29

cxy930123 opened this issue Jun 11, 2021 · 0 comments

Comments

@cxy930123
Copy link

当post请求的url中带有query参数时,无法拦截请求,比如:

POST请求地址:/api/files?lang=zh-CN

mock文件:

export default {
  url: '/api/files',
  response: {},    
}

结果并不能拦截到请求。如果去掉query部分就能拦截到,get请求无此问题。

@anncwb anncwb closed this as completed in 4cb55f8 Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant