fix: 页面缓存

This commit is contained in:
lilinyuan
2024-07-15 09:47:02 +08:00
parent 7e1f5ca820
commit f6dcb6b71b

View File

@@ -3,7 +3,7 @@
<router-view v-slot="{ Component, route }"> <router-view v-slot="{ Component, route }">
<transition name="fade-transform" type="transition" appear mode="out-in"> <transition name="fade-transform" type="transition" appear mode="out-in">
<div> <div>
<template v-if="!route.meta.noCache"> <template v-if="route.meta.noCache">
<keep-alive> <keep-alive>
<suspense> <suspense>
<component :is="Component" :key="route.fullPath" /> <component :is="Component" :key="route.fullPath" />