From d21472dc0f62e8b71068d71fe6a8289390190696 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 20 Jul 2023 15:24:18 +0800 Subject: [PATCH] fix: post status filter item cannot be displayed when the page is refreshed (#4263) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### 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 ``` --- console/src/modules/contents/posts/PostList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/src/modules/contents/posts/PostList.vue b/console/src/modules/contents/posts/PostList.vue index 8199f4bf2..af6c599f3 100644 --- a/console/src/modules/contents/posts/PostList.vue +++ b/console/src/modules/contents/posts/PostList.vue @@ -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', }, ]" />