<template>
<section class="app-main">
<router-view v-slot="{ Component, route }" :key="key">
<transition name="fade-transform" mode="out-in">
<keep-alive :include="tagsViewStore.cachedViews">
<component v-if="!route.meta.link" :is="Component" :key="key" />
</keep-alive>
</transition>
</router-view>
<iframe-toggle />
</section>
</template>
<script setup>
import iframeToggle from "./IframeToggle/index"
import useTagsViewStore from '@/store/modules/tagsView'
const { proxy } = getCurrentInstance();
const tagsViewStore = useTagsViewStore()
let key = computed(() => {
return proxy.$route.path
});
</script>
记录解决路由更改页面不变化