fix: saving an post causes the publish time to be lost (#807)

#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

修复保存文章设置导致发布时间丢失的问题。

#### 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/804/head^2
Ryan Wang 2022-12-29 21:10:33 +08:00 committed by GitHub
parent 4661c5ed66
commit a7341df0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -344,7 +344,7 @@ const annotationsFormRef = ref<InstanceType<typeof AnnotationsForm>>();
type="select"
></FormKit>
<FormKit
:value="publishTime"
:model-value="publishTime"
label="发表时间"
type="datetime-local"
@input="onPublishTimeChange"