From bc3337b59879572e8256051a5beca720aa405e67 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 29 Dec 2022 21:40:33 +0800 Subject: [PATCH] fix: saving an post causes the publish time to be lost (#809) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug #### What this PR does / why we need it: 修复保存文章设置导致发布时间丢失的问题。 see https://github.com/halo-dev/console/pull/807 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3080 #### Special notes for your reviewer: 测试方式: 1. 创建若干文章。 2. 返回到文章管理列表。 3. 打开任意文章的设置。 4. 检查发布时间是否回显,然后保存。 5. 保存之后检查发布时间是否还存在。 #### Does this PR introduce a user-facing change? ```release-note 修复 Console 端保存文章设置导致发布时间丢失的问题。 ``` --- .../contents/pages/components/SinglePageSettingModal.vue | 2 +- src/modules/contents/posts/components/PostSettingModal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/contents/pages/components/SinglePageSettingModal.vue b/src/modules/contents/pages/components/SinglePageSettingModal.vue index f438b7af6..5ed1576a2 100644 --- a/src/modules/contents/pages/components/SinglePageSettingModal.vue +++ b/src/modules/contents/pages/components/SinglePageSettingModal.vue @@ -277,7 +277,7 @@ const onPublishTimeChange = (value: string) => { type="select" > { type="select" >