chore: tweak

This commit is contained in:
pengzhanbo 2024-07-08 18:34:30 +08:00
parent 8c3d6137b1
commit 3ed4058ae2
3 changed files with 21 additions and 19 deletions

View File

@ -108,9 +108,7 @@ watch(
<slot name="doc-before" />
<main class="main">
<VPDocMeta />
<ClientOnly v-if="!isPageDecrypted">
<VPEncryptPage />
</ClientOnly>
<VPEncryptPage v-if="!isPageDecrypted" />
<Content
v-else class="vp-doc plume-content"
:class="[pageName, enabledExternalLinkIcon && 'external-link-icon-enabled']"

View File

@ -11,19 +11,21 @@ const title = computed(() => profile.value?.name || site.value.title)
</script>
<template>
<div class="vp-global-encrypt">
<div class="global-encrypt-container">
<div v-if="profile || title" class="profile">
<p v-if="profile" class="avatar" :class="{ circle: profile.circle }">
<img :src="profile.avatar ?? profile.url" :alt="profile.name">
</p>
<h3 v-if="title">
{{ title }}
</h3>
<ClientOnly>
<div class="vp-global-encrypt">
<div class="global-encrypt-container">
<div v-if="profile || title" class="profile">
<p v-if="profile" class="avatar" :class="{ circle: profile.circle }">
<img :src="profile.avatar ?? profile.url" :alt="profile.name">
</p>
<h3 v-if="title">
{{ title }}
</h3>
</div>
<VPEncryptForm global :info="theme.encryptGlobalText" />
</div>
<VPEncryptForm global :info="theme.encryptGlobalText" />
</div>
</div>
</ClientOnly>
<VPFooter />
</template>

View File

@ -6,12 +6,14 @@ const { theme } = useData()
</script>
<template>
<div class="vp-page-encrypt">
<div class="logo">
<span class="vpi-lock icon-lock-head" />
<ClientOnly>
<div class="vp-page-encrypt">
<div class="logo">
<span class="vpi-lock icon-lock-head" />
</div>
<VPEncryptForm :info="theme.encryptPageText" />
</div>
<VPEncryptForm :info="theme.encryptPageText" />
</div>
</ClientOnly>
</template>
<style scoped>