fucking props!
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<LoginLayout>
|
||||
<MainNav />
|
||||
<slot></slot>
|
||||
<MainNav :route="props.route" />
|
||||
<slot />
|
||||
|
||||
</LoginLayout>
|
||||
</template>
|
||||
@@ -9,4 +9,8 @@
|
||||
<script setup>
|
||||
import LoginLayout from '@/layouts/LoginLayout'
|
||||
import MainNav from '@/components/MainNav'
|
||||
|
||||
const props = defineProps({
|
||||
route: String
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user