|
@@ -5,7 +5,7 @@
|
|
|
<router-view v-slot="{ Component, route }">
|
|
|
<transition :name="pageAnimateMode" mode="out-in">
|
|
|
<keep-alive :include="cachedViews">
|
|
|
- <component :is="Component" :key="getCompKey(route)" />
|
|
|
+ <component :is="Component" :key="route.fullPath" />
|
|
|
</keep-alive>
|
|
|
</transition>
|
|
|
</router-view>
|
|
@@ -19,17 +19,12 @@
|
|
|
import { computed, watch } from 'vue'
|
|
|
import useStore from '@/store'
|
|
|
import Footer from '@/layout/components/Footer/index.vue'
|
|
|
-import { AppRouteRecordRaw } from '@/router/types'
|
|
|
import Tabs from '@/layout/components/Tabs/index.vue'
|
|
|
import MaximizeQuit from './MaximizeQuit.vue'
|
|
|
const { tagsView, setting } = useStore()
|
|
|
const tabsVisible = computed(() => setting.tabsVisible)
|
|
|
const cachedViews = computed(() => tagsView.cachedViews)
|
|
|
|
|
|
-const getCompKey = (route: AppRouteRecordRaw) => {
|
|
|
- if (route.name === 'flow_create_index') return route.path
|
|
|
- return route.fullPath
|
|
|
-}
|
|
|
const pageAnimateMode = computed(() => (setting.animate ? setting.animateMode : undefined))
|
|
|
watch(
|
|
|
() => setting.contentMaximize,
|