Files
jdt-mer/src/layout/components/AppMain.vue
Huakk 17230a9736
Some checks failed
CI Build & Deploy / build-and-deploy-prod (push) Failing after 3m34s
CI Build & Deploy / build-and-deploy-dev (push) Has been cancelled
ci(other): cicd
2026-01-19 03:12:13 +08:00

17 lines
452 B
Vue

<template>
<router-view v-slot="{ Component, route }">
<KeepAlive :include="keepAliveNames">
<component :is="Component" v-if="!tagStore.reloading" :key="route.fullPath" />
</KeepAlive>
</router-view>
</template>
<script setup>
import { useTagsStore } from '@/store'
const tagStore = useTagsStore()
const keepAliveNames = computed(() => {
return tagStore.tags.filter((item) => item.keepAlive).map((item) => item.name)
})
</script>