fix(settings): hide profile when not login
This commit is contained in:
parent
81869df4bd
commit
7380609c93
|
@ -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')"
|
||||||
|
|
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
definePageMeta({
|
||||||
|
middleware: 'auth',
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<MainContent back>
|
<MainContent back>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue