include 值为字符串或者正则表达式匹配的组件name不会被销毁。
exclude 值为字符串或正则表达式匹配的组件name会被销毁。
<router-view v-slot="{ Component }">
<transition> //About组件将会被销毁
<keep-alive exclude="About"> <component :is="Component" /> </keep-alive>
</transition>
</router-view>