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

请求后端接口很慢能达到1分钟,复制url直接在浏览器打开是秒开 #172

Open
yantingbin2012 opened this issue Sep 17, 2020 · 3 comments

Comments

@yantingbin2012
Copy link

yantingbin2012 commented Sep 17, 2020

image
image
整整一分钟才加载完,直接将url放到浏览器地址栏秒开;经过检验应该是代理的问题,但是不知道怎么解决,直接用
VUE_INSTANCE.$request.post(api.login.url).then(response => {
很快;用代理的就慢

@iyuxy
Copy link
Collaborator

iyuxy commented Sep 21, 2020

image
试试注释掉scripts/dev-server.js文件中这2行

@yantingbin
Copy link

image
已经去除以上两行,但是开始无限循环请求了。一直不停了

@yantingbin
Copy link

有大神可以回复一下吗?帮帮菜鸟

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

3 participants