File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ const route = useRoute();
29
29
const loadError = shallowRef (false );
30
30
const articleComponent = shallowRef ();
31
31
const articleComponentRef = useTemplateRef (' articleComponentRef' );
32
- const articleTitle = computed (
33
- () => articleComponentRef .value ? .frontmatter . title
32
+ const articleFrontmatter = computed (
33
+ () => articleComponentRef .value ? .frontmatter
34
34
);
35
35
36
36
function loadArticle (slug ) {
61
61
<template v-else>
62
62
<CategorySecond
63
63
v-if="showTitle"
64
- :title="articleTitle ?? defaultTitle" />
64
+ :title="articleFrontmatter?.title ?? defaultTitle"
65
+ :right-text="articleFrontmatter?.date?.split('T')[0]" />
65
66
<component
66
67
ref="articleComponentRef"
67
68
class="vuepress-markdown-body"
You can’t perform that action at this time.
0 commit comments