From 3d638fde379c74fe9dfc8466e78025df5299232e Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 1 Nov 2022 18:00:42 +0800 Subject: [PATCH] fix: show publish time instead of creation time for post list (#676) --- src/modules/contents/pages/SinglePageList.vue | 4 +--- src/modules/contents/posts/PostEditor.vue | 7 +++---- src/modules/contents/posts/PostList.vue | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/modules/contents/pages/SinglePageList.vue b/src/modules/contents/pages/SinglePageList.vue index b13a5442..ab95da76 100644 --- a/src/modules/contents/pages/SinglePageList.vue +++ b/src/modules/contents/pages/SinglePageList.vue @@ -655,9 +655,7 @@ function handleSortItemChange(sortItem?: SortItem) { diff --git a/src/modules/contents/posts/PostEditor.vue b/src/modules/contents/posts/PostEditor.vue index 14e653d2..d61fcf4b 100644 --- a/src/modules/contents/posts/PostEditor.vue +++ b/src/modules/contents/posts/PostEditor.vue @@ -403,7 +403,7 @@ onMounted(async () => {
- 创建时间 + 发布时间
{
{{ - formatDatetime( - formState.post.metadata.creationTimestamp - ) || "未发布" + formatDatetime(formState.post.spec.publishTime) || + "未发布" }}
diff --git a/src/modules/contents/posts/PostList.vue b/src/modules/contents/posts/PostList.vue index 0c493166..d87aff76 100644 --- a/src/modules/contents/posts/PostList.vue +++ b/src/modules/contents/posts/PostList.vue @@ -944,7 +944,7 @@ function handleContributorChange(user?: User) {