Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit bc3337b

Browse files
authored
fix: saving an post causes the publish time to be lost (#809)
#### What type of PR is this? /kind bug #### What this PR does / why we need it: 修复保存文章设置导致发布时间丢失的问题。 see #807 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#3080 #### Special notes for your reviewer: 测试方式: 1. 创建若干文章。 2. 返回到文章管理列表。 3. 打开任意文章的设置。 4. 检查发布时间是否回显,然后保存。 5. 保存之后检查发布时间是否还存在。 #### Does this PR introduce a user-facing change? ```release-note 修复 Console 端保存文章设置导致发布时间丢失的问题。 ```
1 parent 5602315 commit bc3337b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/contents/pages/components/SinglePageSettingModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const onPublishTimeChange = (value: string) => {
277277
type="select"
278278
></FormKit>
279279
<FormKit
280-
:value="publishTime"
280+
:model-value="publishTime"
281281
label="发表时间"
282282
type="datetime-local"
283283
name="publishTime"

src/modules/contents/posts/components/PostSettingModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const onPublishTimeChange = (value: string) => {
279279
type="select"
280280
></FormKit>
281281
<FormKit
282-
:value="publishTime"
282+
:model-value="publishTime"
283283
label="发表时间"
284284
type="datetime-local"
285285
@input="onPublishTimeChange"

0 commit comments

Comments
 (0)