fix(settings): hide profile when not login

zio/stable
三咲智子 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> </template>
<div xl:w-97 lg:w-78 w-full> <div xl:w-97 lg:w-78 w-full>
<SettingsNavItem <SettingsNavItem
v-if="currentUser"
command command
icon="i-ri:user-line" icon="i-ri:user-line"
:text="$t('settings.profile.label')" :text="$t('settings.profile.label')"

View File

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

View File

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

View File

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