Skip to content

keep-alive deeply nested router-views display the last visited component component #2923

Closed
@lxcuso4

Description

@lxcuso4

Version

3.1.3

Reproduction link

https://jsfiddle.net/lxcuso4/cu6keqw2/28

Steps to reproduce

Click on childA
Click on index
Click on childB

What is expected?

we want to show B page

What is actually happening?

but actually A page dispaly


This behavior happens when we use keep-alive and have three layers of nested routing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughas PRkeep-aliveProblem appearing when using keep-alive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions