<!-- 组件-->标签:组件,使用,alive,keep From: https://www.cnblogs.com/anans/p/17279132.html
<keep-alive>
<home></home>
</keep-alive>
<!-- vue3 路由-->
<router-view v-slot="{ Component }" :max="10">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>