-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
Description
Version
2.5.2
Reproduction link
https://jsfiddle.net/L613xva0/13/
Steps to reproduce
triggle the route
What is expected?
the second route component not be cached
What is actually happening?
the second route component be cached
this demo tow router-view component both have name, the result is right ,
but in this demo, the second route have no name ,but also be cached
The match is first checked on the component’s own name option, then its local registration name (the key in the parent’s components option) if the name option is not available. Anonymous components cannot be matched against.
<keep-alive :include="cachePages">
<router-view></router-view>
</keep-alive>
when l keep-alive router-view , every anonymous component page will be cached , i don't think is reasonable.