fucking props!

This commit is contained in:
Sockenklaus
2023-07-02 19:56:51 +02:00
parent bc38291696
commit bf92a1ed9a
6 changed files with 47 additions and 21 deletions

View File

@@ -1,12 +1,31 @@
<template>
<div>test</div>
<div>{{route}}</div>
</template>
<script setup>
import BELayout from '@/layouts/BELayout.vue'
import MainNav from '@/components/MainNav.vue'
defineOptions({ layout: BELayout })
//const props = defineProps(['route'])
defineOptions({
layout: (h, page) => h(BELayout, {
props: {
route: route
}
}, [page])
})
</script>
<script>
import BELayout from '@/layouts/BELayout.vue'
import { h } from 'vue'
export default {
props: {
route: String
}
}
</script>
</script>