mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-07 09:29:59 +00:00
fix(settings): hide profile when not login
This commit is contained in:
parent
81869df4bd
commit
7380609c93
4 changed files with 14 additions and 0 deletions
|
@ -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')"
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
middleware: 'auth',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MainContent back>
|
||||
<template #title>
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
middleware: 'auth',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MainContent back-on-small-screen>
|
||||
<template #title>
|
||||
|
|
Loading…
Reference in a new issue