We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffbf54 commit b66afc7Copy full SHA for b66afc7
src/.vuepress/theme/components/PageEdit.vue
@@ -10,7 +10,7 @@
10
class="mb-4 border-b-2 border-accent-primary"
11
/>
12
<div
13
- v-if="$themeConfig.lastUpdated"
+ v-if="$themeConfig.lastUpdated && $page.lastUpdated"
14
class="last-update"
15
>
16
<span class="font-bold">
@@ -35,7 +35,7 @@ export default {
35
36
setup (_, { root }) {
37
const editLink = computed(() => `https://github.com/${root.$themeConfig.repo}/edit/${root.$themeConfig.docsBranch || 'master'}/${root.$themeConfig.docsDir || 'docs'}/${root.$page.relativePath}`)
38
- const datetime = new Date(root.$page.lastUpdated).toISOString()
+ const datetime = root.$page.lastUpdated && new Date(root.$page.lastUpdated).toISOString()
39
40
return {
41
datetime,
0 commit comments