refactor: 报错代码调整

This commit is contained in:
meilin.huang
2023-12-13 17:32:17 +08:00
parent 73986a834c
commit 0b5ab090a4
8 changed files with 35 additions and 62 deletions

View File

@@ -1,13 +1,11 @@
<template>
<div class="h100">
<router-view v-slot="{ Component }">
<transition :name="setTransitionName" mode="out-in">
<keep-alive :include="getKeepAliveNames">
<component :is="Component" :key="state.refreshRouterViewKey" class="w100" />
</keep-alive>
</transition>
</router-view>
</div>
<router-view v-slot="{ Component }">
<transition appear :name="setTransitionName" mode="out-in">
<keep-alive :include="getKeepAliveNames">
<component :is="Component" :key="state.refreshRouterViewKey" />
</keep-alive>
</transition>
</router-view>
</template>
<script lang="ts" setup name="layoutParentView">