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

mock-server热更新问题 #3214

Open
fredricen opened this issue May 28, 2020 · 2 comments
Open

mock-server热更新问题 #3214

fredricen opened this issue May 28, 2020 · 2 comments

Comments

@fredricen
Copy link

fredricen commented May 28, 2020

Bug report(问题描述)

目前最新版本的mock-server,在修改了路由中的内容后(路由没有修改),保存即触发热更新,但是随后再次发送相同路由请求,返回404错误,重启项目方能生效。

Steps to reproduce(问题复现步骤)

  1. 在项目mock文件夹下,修改对应的路由接口文件,只修改内容,比如增加一个console.log之类,但不修改路由;
  2. 重启项目;
  3. 对应路由成功发送,并正确响应,反应了修改内容;
  4. 再次修改内容,但是不修改路由;
  5. 在不重启项目的情况下,发送该路由请求,浏览器报404错误;

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS: win10
  • Node.js version: 10.18.1
  • vue-element-admin version: 4.2.1
@DidoFitch
Copy link

same issue #2929

@fredricen
Copy link
Author

fredricen commented Jun 15, 2020

本人按照#2929里面的提示,说是要升级webpack-dev=server,但是本人用最新vue-cli生成的工程,webpack版本本身就是新的,版本号为[email protected] @DidoFitch

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

2 participants