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.
 
 
 
 
 

18 lines
602 B

<script setup lang="ts">
import { useAuthSession } from '../../composables/useAuthSession'
import GuestHomeSection from '../../components/home/GuestHomeSection.vue'
import LoggedInHomeSection from '../../components/home/LoggedInHomeSection.vue'
const { loggedIn, user } = useAuthSession()
const { allowRegister, siteName } = useGlobalConfig()
usePageTitle('首页')
</script>
<template>
<div class="mx-auto max-w-6xl pb-4">
<LoggedInHomeSection v-if="loggedIn && user" :user="user" />
<GuestHomeSection v-else :site-name="siteName" :allow-register="allowRegister" />
</div>
</template>