-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
keep-alive缓存会造成子路由重复渲染 #67
Labels
Comments
提供个例子吧 |
就现在的线上demo多级路由那一块,menu1-2-2路由keepAlive改为false,页面加上生命周期就可以发现他们被执行了多次 |
ok 我会检查它 |
xiaoxian521
added
Community::Bug Report 🔨
bug
and removed
needs more info
需要更多信息
labels
Oct 22, 2021
这个bug似乎跟vue-router有关,当vue-router和keep-alive一起使用,同时嵌套子路由的话就会触发 |
目前解决这个问题的一个办法是在嵌套路由的场景下,不使用 这个bug暂时貌似无更好的解决办法,可以看看这里: |
fix: d57e0e3 |
一级 router-view 设置成 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,请教一下,最新版使用了keep-alive的页面生命周期会加载多次,导致页面重复请求,这种怎么解决呢
The text was updated successfully, but these errors were encountered: