feat(TagsView): Add TagsView component

feat(ContextMenu): Add ContextMenu component

feat(store): Add tagsView store
This commit is contained in:
kailong321200875
2022-01-16 17:55:20 +08:00
parent 4612e5544b
commit 349ac9d398
20 changed files with 900 additions and 164 deletions

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
import { useTagsViewStore } from '@/store/modules/tagsView'
import { computed } from 'vue'
const tagsViewStore = useTagsViewStore()
const getCaches = computed((): string[] => {
return tagsViewStore.getCachedViews
})
</script>
<template>
<router-view>
<template #default="{ Component, route }">
<keep-alive :include="getCaches">
<component :is="Component" :key="route.fullPath" />
</keep-alive>
</template>
</router-view>
</template>