-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
vite-plugin-mock 和vite的proxy同时开启问题 #63
Comments
能提供下复现步骤或者测试接口吗,我这边正常 |
我是直接把mock/sys/user.ts的/api/login数据注释,登录时/api/login会一直pending直到超时 |
登录注释后代理到后台是吗?可以提供下截图或者更详细的信息? |
尝试先将 /src/utils/http/axios/index.ts 内 的beforeRequestHook函数里面的所有 |
1.config.params=>undefined |
我测试看看 |
这个接口是get,登录是post |
文档有这个问题。proxy代理https还有问题。刚看是https接口 |
咦 有点不明白,我本地关掉 VITE_USE_MOCK,代理https是没问题的 |
我再注意下这个问题 |
已找到原因,是因为vite-plugin-mock我用了bodyparse导致的。下一版修复 |
vite-plugin-mock 的mock数据如果不存在的话,接口会一直处于pending状态,vite的proxy不起作用
The text was updated successfully, but these errors were encountered: