放弃vuex改用pinia (#872)

Co-authored-by: bypanghu <bypanghu@163.com>
This commit is contained in:
奇淼(piexlmax
2022-01-07 12:29:32 +08:00
committed by GitHub
co-authored by bypanghu
parent eca5967b4d
commit 727caf3f4f
60 changed files with 681 additions and 918 deletions
+4 -1
View File
@@ -2,7 +2,7 @@
<div>
<router-view v-slot="{ Component }">
<transition mode="out-in" name="el-fade-in-linear">
<keep-alive :include="$store.getters['router/keepAliveRouters']">
<keep-alive :include="useRouterStore.keepAliveRouters">
<component :is="Component" />
</keep-alive>
</transition>
@@ -15,3 +15,6 @@ export default {
name: 'SuperAdmin'
}
</script>
<script setup>
import { useRouterStore } from '@/pinia/modules/router'
</script>