vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.91k stars 1.19k forks source link

Error rendering occurs when the multi-layer <router-view> is used with the <keep-alive> tag #1923

Closed down-in closed 1 year ago

down-in commented 1 year ago

Reproduction

folowing the steps

Steps to reproduce the bug

App.vue <template><router-view></router-view></template>

routes image

Root.vue image

A.vue: image

B.vue image

Expected behavior

D component is not renderd under A component's router-view

Actual behavior

D component is renderd under A component's router-view

Additional information

"vue": "^3.3.4"
"vue-router": "4.2.4"