mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:48:38 +08:00
28 lines
519 B
Vue
28 lines
519 B
Vue
<route lang="yaml">
|
||
meta:
|
||
enabled: false
|
||
</route>
|
||
|
||
<script lang="ts" setup>
|
||
import useKeepAliveStore from '@/store/modules/keepAlive'
|
||
|
||
defineOptions({
|
||
name: 'TabExampleNested1',
|
||
})
|
||
|
||
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>
|