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 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 端保存文章设置导致发布时间丢失的问题。
```
pull/810/head
Ryan Wang 2022-12-29 21:40:33 +08:00 committed by GitHub
parent 56023158a3
commit bc3337b598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ const onPublishTimeChange = (value: string) => {
type="select" type="select"
></FormKit> ></FormKit>
<FormKit <FormKit
:value="publishTime" :model-value="publishTime"
label="发表时间" label="发表时间"
type="datetime-local" type="datetime-local"
name="publishTime" name="publishTime"

View File

@ -279,7 +279,7 @@ const onPublishTimeChange = (value: string) => {
type="select" type="select"
></FormKit> ></FormKit>
<FormKit <FormKit
:value="publishTime" :model-value="publishTime"
label="发表时间" label="发表时间"
type="datetime-local" type="datetime-local"
@input="onPublishTimeChange" @input="onPublishTimeChange"