feat(tabs): 标签页新增重新加载、关闭左侧操作

This commit is contained in:
2024-11-23 21:17:22 +08:00
parent 6c45483fae
commit b030921189
3 changed files with 76 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
<router-view v-slot="{ Component, route }">
<transition :name="appStore.transitionName" mode="out-in" appear>
<keep-alive :include="(tabsStore.cacheList as string[])">
<component :is="Component" :key="route.path" />
<component :is="Component" :key="route.path + String(tabsStore.reloadFlag)" />
</keep-alive>
</transition>
</router-view>