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 热更新时路由错乱的问题 #3304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

puer
Copy link

@puer puer commented Jul 6, 2020

Fixes #2934

使用动态路由替代之前的 直接修改 _router 变量的黑魔法,避免热更新后路由错乱的问题。

@netlify
Copy link

netlify bot commented Jul 6, 2020

Deploy preview for vue-element-admin ready!

Built with commit 7f036a6

https://deploy-preview-3304--vue-element-admin.netlify.app

@JackieCheung
Copy link

我试了好像有问题 用vue-cli反向代理进行测试的时候 重启项目会直接白屏 进不去

@kkqy
Copy link

kkqy commented Sep 3, 2020

我试了好像有问题 用vue-cli反向代理进行测试的时候 重启项目会直接白屏 进不去

应该跟这个提交无关,我这边没问题,而且完美解决了修改了mock热更新表面成功,实则没成功的问题

@JackieCheung
Copy link

我试了好像有问题 用vue-cli反向代理进行测试的时候 重启项目会直接白屏 进不去

应该跟这个提交无关,我这边没问题,而且完美解决了修改了mock热更新表面成功,实则没成功的问题

这个我已经处理了,我的 responseFake 里面的 url 是 new RegExp(^${process.env.VUE_APP_BASE_API}${url}$) 而不是 new RegExp(url)

@qianhn
Copy link

qianhn commented Oct 27, 2020

解决了 我的问题 厉害

@snimstice
Copy link

解决了 大佬666

@dearMyFriend007
Copy link

非常棒,大佬。解决了我脱发的问题

@tongdehui
Copy link

666 终于解决了 感谢楼主

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

Successfully merging this pull request may close these issues.

#2929 fixed mock server 出现新问题
7 participants