router vue keep-alive code example
Example: keep-alive vuejs router
<transition>
<keep-alive>
<router-view></router-view>
</keep-alive>
</transition>
<transition>
<keep-alive>
<router-view></router-view>
</keep-alive>
</transition>