From 397e05001060d71114e03fe5c8f6e77292c6c000 Mon Sep 17 00:00:00 2001 From: Airbo ZH Date: Thu, 19 Jan 2023 12:06:14 +0800 Subject: [PATCH] fix: use comment.metadata.name instead of index as the key of comments list (#830) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug #### What this PR does / why we need it: 修复后台删除评论后会导致下方头像错误的bug #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3170 #### Screenshots: ![becd4362a1064b5cba0a26298df8d8e](https://user-images.githubusercontent.com/50261327/213245296-c304bd40-2a1c-4e10-a7b0-7160fd0ac259.png) ![96585c0a721ffed8be07781b0dd612c](https://user-images.githubusercontent.com/50261327/213245315-e7f7ac1b-a4f0-4d33-9ba3-0c0b6b3c7259.png) #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 修复后台删除评论后会导致下方头像错误的bug ``` --- src/modules/contents/comments/CommentList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/contents/comments/CommentList.vue b/src/modules/contents/comments/CommentList.vue index 3d46d383..7d66ab83 100644 --- a/src/modules/contents/comments/CommentList.vue +++ b/src/modules/contents/comments/CommentList.vue @@ -492,7 +492,10 @@ function handleClearFilters() { class="box-border h-full w-full divide-y divide-gray-100" role="list" > -
  • +