fix(vuepress-theme-reco): ssr-related issues

This commit is contained in:
stevapple 2020-04-10 17:19:31 +08:00
parent bbdddcc02e
commit f84750b17a
2 changed files with 3 additions and 8 deletions

View File

@ -13,8 +13,8 @@
<a>
<span v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</span>
&nbsp;&nbsp;
<span v-if="$themeConfig.startYear && $themeConfig.startYear != year">{{ $themeConfig.startYear }} - </span>
{{ year }}
<span v-if="$themeConfig.startYear && $themeConfig.startYear != (new Date().getFullYear())">{{ $themeConfig.startYear }} - </span>
{{ new Date().getFullYear() }}
</a>
</span>
<span v-show="$themeConfig.valineConfig !== undefined">
@ -35,11 +35,6 @@ export default {
return {
version
}
},
computed: {
year () {
return new Date().getFullYear()
}
}
}
</script>

View File

@ -22,7 +22,7 @@
'max-width': linksWrapMaxWidth + 'px'
} : {}">
<Mode v-show="$themeConfig.modePicker !== false" />
<Mode v-if="$themeConfig.modePicker !== false" />
<AlgoliaSearchBox
v-if="isAlgoliaSearch"
:options="algolia"/>