<!--router-view 实现页面缓存-->
<router-view v-slot="{Component}">
<keep-alive :max="8">
<component :is="Component"></component>
</keep-alive>
</router-view>
keep-alive实现页面缓存
于 2024-06-22 23:03:43 首次发布
<!--router-view 实现页面缓存-->
<router-view v-slot="{Component}">
<keep-alive :max="8">
<component :is="Component"></component>
</keep-alive>
</router-view>