fucking props!
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user