This commit is contained in:
icssoa 2022-09-29 11:31:43 +08:00
parent 49d2ebf584
commit bd267b6a28

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="app-views"> <div class="app-views">
<router-view v-slot="{ Component }"> <router-view v-slot="{ Component }">
<el-scrollbar :key="route.path"> <el-scrollbar>
<transition :name="app.info.router.transition"> <transition :name="app.info.router.transition">
<keep-alive :include="caches"> <keep-alive :include="caches">
<component :is="Component" /> <component :is="Component" />
@ -40,6 +40,7 @@ const caches = computed(() => {
width: calc(100% - 20px); width: calc(100% - 20px);
box-sizing: border-box; box-sizing: border-box;
border-radius: 3px; border-radius: 3px;
position: relative;
:deep(.el-scrollbar__view) { :deep(.el-scrollbar__view) {
height: 100%; height: 100%;