From 189573e70ba22adb39542032a924a8363ba07d05 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 28 Nov 2022 21:10:18 +0800 Subject: [PATCH] feat: post list supports displaying the pinned status (#720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind feature /milestone 2.0.0-rc.2 #### What this PR does / why we need it: 支持在文章管理列表显示文章置顶标识。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/2678 #### Screenshots: image #### Special notes for your reviewer: 测试方式: 1. 创建若干文章。 2. 将部分文章设置为置顶。 3. 返回到列表检查是否有置顶标识。 #### Does this PR introduce a user-facing change? ```release-note Console 端支持在文章管理列表显示文章置顶标识。 ``` --- src/modules/contents/posts/PostList.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/contents/posts/PostList.vue b/src/modules/contents/posts/PostList.vue index 5a5d106e..b4658bfa 100644 --- a/src/modules/contents/posts/PostList.vue +++ b/src/modules/contents/posts/PostList.vue @@ -801,6 +801,12 @@ const hasFilters = computed(() => { 评论 {{ post.stats.totalComment || 0 }} + + 已置顶 +