Vue-element-admin: 新版mock-server 问题

Created on 9 Jul 2019  ·  4Comments  ·  Source: PanJiaChen/vue-element-admin

我项目下载下来后 使用vscode打开,第一次mock请求没问题,当我在终端取消掉,再重启,就报连接超时问题。timeout of 5000ms exceeded 有人遇见过吗?

Most helpful comment

同样的问题:
Proxy error: Could not proxy request /user/login from localhost:23814 to http://127.0.0.1:9527/mock.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
请问解决了吗?

All 4 comments

问题原因好像是 只支持9528端口Mock数据请求,如果重启npm run dev,端口变掉就直接超时

一样的问题 使用vscode打开,第一次mock请求没问题 后面就变成9529了。。然后登录不了

同样的问题:
Proxy error: Could not proxy request /user/login from localhost:23814 to http://127.0.0.1:9527/mock.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
请问解决了吗?

我在request.js中添加了一个service1,使用service1,mock-server就无法运行,然后我改回使用service,就正常运行了

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gateslu picture gateslu  ·  4Comments

eladcandroid picture eladcandroid  ·  4Comments

Sihan-Tan picture Sihan-Tan  ·  4Comments

ghost picture ghost  ·  4Comments

TianYouH picture TianYouH  ·  4Comments