diff --git a/src/models/Post.class.ts b/src/models/Post.class.ts index f8112dff..d80f9879 100644 --- a/src/models/Post.class.ts +++ b/src/models/Post.class.ts @@ -64,14 +64,15 @@ export class Post { categories: Category[] = [] tags: Tag[] = [] min_tags: Tag[] = [] - count_time = {} + count_time: { symbolsTime?: string; symbolsCount?: number } = {} toc = '' - next_post = {} - prev_post = {} + next_post: { title?: string } = {} + prev_post: { title?: string } = {} author = { name: '', avatar: '', - link: '' + link: '', + slug: '' } feature = false pinned = false diff --git a/src/views/Post.vue b/src/views/Post.vue index bf146ea5..b4b35cd4 100644 --- a/src/views/Post.vue +++ b/src/views/Post.vue @@ -90,13 +90,13 @@ v-if="post.count_time.symbolsTime && post.date" > - + {{ post.count_time.symbolsTime }} - + {{ post.count_time.symbolsCount }} @@ -131,15 +131,7 @@