vue keepalive缓存问题

当同时设置include和exclude时,且有交集时,exclude优先级更高。include、exclude中的名字数组为页面组件中defineOptions({name:''}) name设置的值
<router-view v-slot="{ Component }">
  <transition-group>
    <keep-alive :include="include" :exclude="exclude">
      <component :is="Component" />
    </keep-alive>
  </transition-group>
</router-view>
posted @ 2024-04-29 20:44  亦茫茫  阅读(37)  评论(0)    收藏  举报