fix: omit value property of isHydrated in template (#681)
This commit is contained in:
parent
64611083a5
commit
645da2f945
8 changed files with 15 additions and 19 deletions
|
@ -13,7 +13,7 @@ useHeadFixed({
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<CommonAlert v-if="isHydrated.value && !hideNewsTips" @close="hideNewsTips = true">
|
||||
<CommonAlert v-if="isHydrated && !hideNewsTips" @close="hideNewsTips = true">
|
||||
<p>{{ $t('tooltip.explore_posts_intro') }}</p>
|
||||
</CommonAlert>
|
||||
<!-- TODO: Tabs for trending statuses, tags, and links -->
|
||||
|
|
|
@ -13,7 +13,7 @@ useHeadFixed({
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<CommonAlert v-if="isHydrated.value && !hideNewsTips" @close="hideNewsTips = true">
|
||||
<CommonAlert v-if="isHydrated && !hideNewsTips" @close="hideNewsTips = true">
|
||||
<p>{{ $t('tooltip.explore_links_intro') }}</p>
|
||||
</CommonAlert>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ useHeadFixed({
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<CommonAlert v-if="isHydrated.value && !hideTagsTips && data && data.length" @close="hideTagsTips = true">
|
||||
<CommonAlert v-if="isHydrated && !hideTagsTips && data && data.length" @close="hideTagsTips = true">
|
||||
<p>{{ $t('tooltip.explore_tags_intro') }}</p>
|
||||
</CommonAlert>
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ const isRootPath = computedEager(() => route.name === 'settings')
|
|||
</template>
|
||||
<div xl:w-97 lg:w-78 w-full>
|
||||
<SettingsNavItem
|
||||
v-show="currentUser"
|
||||
:command="!!currentUser"
|
||||
v-if="isHydrated && currentUser "
|
||||
command
|
||||
icon="i-ri:user-line"
|
||||
:text="$t('settings.profile.label')"
|
||||
to="/settings/profile"
|
||||
|
|
|
@ -69,6 +69,7 @@ const { submit, submitting } = submitter(async ({ dirtyFields }) => {
|
|||
<!-- banner -->
|
||||
<div of-hidden bg="gray-500/20" aspect="3">
|
||||
<CommonInputImage
|
||||
v-if="isHydrated"
|
||||
ref="elInputImage"
|
||||
v-model="form.header"
|
||||
:original="onlineSrc.header"
|
||||
|
@ -80,6 +81,7 @@ const { submit, submitting } = submitter(async ({ dirtyFields }) => {
|
|||
<!-- avatar -->
|
||||
<div px-4>
|
||||
<CommonInputImage
|
||||
v-if="isHydrated"
|
||||
v-model="form.avatar"
|
||||
:original="onlineSrc.avatar"
|
||||
mt--10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue