Skip to content

vue-cli 中路由用 keep-alive 缓存且 <router-view> 加了 key 之后修改 js 热更新白屏 #5008

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

Closed
hellomrbigshot opened this issue Dec 29, 2019 · 1 comment

Comments

@hellomrbigshot
Copy link

Version

4.1.2

Reproduction link

https://github.com/hellomrbigshot/router-test

Environment info

macOS 10.15.2
Chrome 79.0.3945.88

Steps to reproduce

将界面切换到Page1,然后修改page1的js代码,page1界面消失了。
但是将 的 key 去掉就能正常热更新。

What is expected?

修改代码后界面正常更新

What is actually happening?

修改js代码后界面显然出错

@haoqunjiang
Copy link
Member

Duplicate of vuejs/vue-loader#1332

@haoqunjiang haoqunjiang marked this as a duplicate of vuejs/vue-loader#1332 Dec 29, 2019
linpengteng added a commit to antd-templater/vue-template-2.x that referenced this issue Dec 15, 2022
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