vuejs / vue-router

🚦 The official router for Vue 2
http://v3.router.vuejs.org/
MIT License
18.99k stars 5.06k forks source link

fix: onBeforeRouteLeave not remove (fix #3826) #3875

Open wynn719 opened 10 months ago

wynn719 commented 10 months ago

The problem seems to be that onBeforeRouteLeave lacks handling of onActivated and onDeactivated hooks in the keep-alive component.

I referred to vue router 4 to fix the processing of onBeforeRouteLeave.

https://github.com/vuejs/router/blob/main/packages/router/src/navigationGuards.ts

Fix #3826

netlify[bot] commented 10 months ago

Deploy Preview for vue-router-docs-v3 canceled.

Name Link
Latest commit b382a4f536d9ea857f746c28c85f684456a65db7
Latest deploy log https://app.netlify.com/sites/vue-router-docs-v3/deploys/65577936393c7f0008385ce8