update code
parent
3f2741c473
commit
4507369487
|
@ -3,12 +3,11 @@
|
|||
<el-scrollbar height="calc(100vh - 76px)">
|
||||
<router-view>
|
||||
<template #default="{ Component, route }">
|
||||
<transition
|
||||
enter-active-class="animate__animated animate__fadeIn"
|
||||
mode="out-in"
|
||||
>
|
||||
<transition enter-active-class="animate__animated animate__fadeIn" mode="out-in">
|
||||
<keep-alive :include="cachedViews">
|
||||
<div>
|
||||
<component :is="Component" :key="route.path" />
|
||||
</div>
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</template>
|
||||
|
@ -29,6 +28,7 @@ const cachedViews = computed(() => useTagsViewStore().cachedViews); // 缓存页
|
|||
width: 100%;
|
||||
min-height: calc(100vh - 100px);
|
||||
overflow: hidden;
|
||||
|
||||
:deep(.el-scrollbar__view) {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue