tabs优化

This commit is contained in:
Gary Fu
2023-12-30 14:07:49 +08:00
parent aeb759c5c0
commit d74c876d70
12 changed files with 210 additions and 39 deletions

View File

@@ -35,7 +35,10 @@ const showLeftMenu = computed(() => {
name="slide-fade"
mode="out-in"
>
<KeepAlive :include="tabsViewStore.cachedTabs">
<KeepAlive
:include="tabsViewStore.cachedTabs"
:max="10"
>
<component
:is="Component"
:key="route.fullPath"
@@ -44,7 +47,7 @@ const showLeftMenu = computed(() => {
</transition>
</router-view>
</el-main>
<global-settings/>
<global-settings />
</el-container>
</el-container>
</template>