Files
basic/src/views/keep_alive_example/nested/nested.vue
T
2023-04-06 00:04:23 +08:00

24 lines
495 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<route lang="yaml">
meta:
enabled: false
</route>
<script lang="ts" setup name="TabExampleNested1">
import useKeepAliveStore from '@/store/modules/keepAlive'
const keepAliveStore = useKeepAliveStore()
</script>
<template>
<div>
<page-main>
<div>层级:1</div>
<router-view v-slot="{ Component }">
<keep-alive :include="keepAliveStore.list">
<component :is="Component" />
</keep-alive>
</router-view>
</page-main>
</div>
</template>