if keep-alive is indicated in the router view as shown below
<keep-alive>
<router-view></router-view>
</keep-alive>
then all routes are effectively cached and reloaded when this route is redefined.
I would like to specify the keep-alive option on separate routes.
With many routes, and only 1 or 2 that need to be kept alive without re-rendering, caching all routes is useless
is there any way to do this or any available workaround
source
share