Merge pull request #211 from shark-lajiao/main

fix:keepAliveComponents
This commit is contained in:
Ah jung
2023-03-09 08:53:12 +08:00
committed by GitHub

View File

@@ -2,7 +2,7 @@
<RouterView>
<template #default="{ Component, route }">
<transition :name="getTransitionName" mode="out-in" appear>
<keep-alive v-if="keepAliveComponents" :include="keepAliveComponents">
<keep-alive v-if="keepAliveComponents.length" :include="keepAliveComponents">
<component :is="Component" :key="route.fullPath" />
</keep-alive>
<component v-else :is="Component" :key="route.fullPath" />