fix: post status filter item cannot be displayed when the page is refreshed (#4263)

#### What type of PR is this?

/kind bug
/area console
/milestone 2.8.x

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

修复文章状态筛选在刷新页面之后无法回显的问题。

#### Which issue(s) this PR fixes:

see https://github.com/halo-dev/halo/pull/4219#issuecomment-1641310000

#### Special notes for your reviewer:

需要测试:

1. 在文章管理页面选择某个状态筛序项,观察数据是否正常。
2. 刷新页面,观察筛选项是否回显。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/4270/head
Ryan Wang 2023-07-20 15:24:18 +08:00 committed by GitHub
parent ec2ab632fc
commit d21472dc0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -435,11 +435,11 @@ const getExternalUrl = (post: Post) => {
},
{
label: t('core.post.filters.status.items.published'),
value: true,
value: 'true',
},
{
label: t('core.post.filters.status.items.draft'),
value: false,
value: 'false',
},
]"
/>