fix(settings): hide profile when not login

This commit is contained in:
三咲智子 2022-12-30 04:14:05 +08:00
parent 81869df4bd
commit 7380609c93
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
4 changed files with 14 additions and 0 deletions

View file

@ -20,6 +20,7 @@ const isRootPath = computedEager(() => route.name === 'settings')
</template>
<div xl:w-97 lg:w-78 w-full>
<SettingsNavItem
v-if="currentUser"
command
icon="i-ri:user-line"
:text="$t('settings.profile.label')"

View file

@ -3,6 +3,7 @@ import { invoke } from '@vueuse/shared'
import { useForm } from 'slimeform'
definePageMeta({
middleware: 'auth',
// Keep alive the form page will reduce raw data timeliness and its status timeliness
keepalive: false,
})

View file

@ -1,3 +1,9 @@
<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
</script>
<template>
<MainContent back>
<template #title>

View file

@ -1,3 +1,9 @@
<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
</script>
<template>
<MainContent back-on-small-screen>
<template #title>