vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.59k stars 8.32k forks source link

keepAlive with Dynamic Components errror #8068

Open GrayFaith opened 1 year ago

GrayFaith commented 1 year ago

Vue version

3.2.47

Link to minimal reproduction

https://github.com/GrayFaith/viteproject.git

Steps to reproduce

yarn dev login: admin 123 switch left side menu console:Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function

What is expected?

Switch dynamic components correctly and no error

What is actually happening?

Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function

System Info

OS:Windows 11 22H2 22621.1105
nodeJs:16
browser:Google Chrome/111.0.0.0

Any additional comments?

file in src/components/index/right/RightContainer.vue

edison1105 commented 3 weeks ago

The reproduction is too complex, and there is a login error. Please provide a minimal runnable reproduction.