Open wynn719 opened 10 months ago
The problem seems to be that onBeforeRouteLeave lacks handling of onActivated and onDeactivated hooks in the keep-alive component.
onBeforeRouteLeave
onActivated
onDeactivated
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
The problem seems to be that
onBeforeRouteLeave
lacks handling ofonActivated
andonDeactivated
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