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

功能升级 | router-view 的key会影响热更新 导致页面白屏 #308

Open
wangjue666 opened this issue Sep 16, 2020 · 1 comment
Open
Labels
计划 Plan 以后需要做的事情

Comments

@wangjue666
Copy link
Member

这是vue-loader一个尚未修复的bug vuejs/vue-loader#1332
简单的解决办法是 开发环境下不加 key 但不利于调试
比较折腾的办法是 引入 vue-keep-alive-dev插件 简单的使用了下 又有诸多问题

@wangjue666 wangjue666 added the 计划 Plan 以后需要做的事情 label Sep 16, 2020
@watchingfun
Copy link

vuejs/vue-loader#1332 (comment)
感谢指路,我在该issue里找到解决方法了,把该代码保存为js文件,在main.js require该文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
计划 Plan 以后需要做的事情
Projects
None yet
Development

No branches or pull requests

2 participants