!97 解决页面偶尔出现的白屏问题

Merge pull request !97 from 吴均/dev
This commit is contained in:
疯狂的狮子Li 2024-04-09 03:27:51 +00:00 committed by Gitee
commit 70120a8f2f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
<template> <template>
<section class="app-main"> <section class="app-main">
<router-view v-slot="{ Component, route }"> <router-view v-slot="{ Component, route }" :key="$route.fullPath">
<transition :enter-active-class="animante" mode="out-in"> <transition :enter-active-class="animante" mode="out-in">
<keep-alive :include="tagsViewStore.cachedViews"> <keep-alive :include="tagsViewStore.cachedViews">
<component :is="Component" v-if="!route.meta.link" :key="route.path" /> <component :is="Component" v-if="!route.meta.link" :key="route.path" />