mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-16 22:51:10 +00:00
修复keepalive问题 #934 #903,调整刷新功能,增加页面跳转动画。
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<router-view v-slot="{ Component }">
|
||||
<transition mode="out-in" name="el-fade-in-linear">
|
||||
<keep-alive :include="useRouterStore.keepAliveRouters">
|
||||
<keep-alive :include="routerStore.keepAliveRouters">
|
||||
<component :is="Component" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
@@ -17,4 +17,5 @@ export default {
|
||||
</script>
|
||||
<script setup>
|
||||
import { useRouterStore } from '@/pinia/modules/router'
|
||||
const routerStore = useRouterStore()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user