路由跳转空白修复

This commit is contained in:
lijun 2025-03-31 14:14:42 +08:00
parent de926211ef
commit 57ee7e0218

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 v-if="!route.meta.noCache" :enter-active-class="animate" mode="out-in"> <transition v-if="!route.meta.noCache" :enter-active-class="animate" mode="out-in">
<keep-alive v-if="!route.meta.noCache" :include="tagsViewStore.cachedViews"> <keep-alive v-if="!route.meta.noCache" :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" />