多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
494 B

<script lang="ts" setup>
const router = useRouter()
const route = router.currentRoute
</script>
<script lang="ts">
export default {
name: 'DashboardLayout',
}
</script>
<template>
<NuxtLayout>
<slot v-if="!route.meta.hasSidebar" name="content" />
<LazyDashboardView v-else>
<template #sidebar>
<slot name="sidebar" />
</template>
<template #content>
<slot name="content" />
</template>
</LazyDashboardView>
</NuxtLayout>
</template>