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

This commit is contained in:
wujun 2024-04-09 11:19:04 +08:00
parent 905426ad45
commit 6b4d756a9d

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" />