mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
tabs优化
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -5,7 +5,7 @@ const globalConfigStore = useGlobalConfigStore()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-drawer v-model="globalConfigStore.isShowSettings" direction="rtl">
|
||||
<el-drawer v-model="globalConfigStore.isShowSettings" direction="rtl" :size="350">
|
||||
<template #header>
|
||||
<strong>{{ $t('common.label.settings') }}</strong>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user