Skip to content

vue 2.7 vue-router 3.6.5 onforeRouteLeave is called Be twice, from entering other pages and when returning from other pages #3798

@liguangyi1991

Description

@liguangyi1991

E.g: There are three pages A, B, C.
The B page uses the keep-alive package, and onBeforeLeave is in the B page;
when entering the C page from the B page, and returning from the C page to the B page, the onBeforeLeave method is called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions