keep-alive vue 3 router 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>