From ec0187d8aa8e66829848a103d41f78f7da44c57f Mon Sep 17 00:00:00 2001 From: Takagi <1103069291@qq.com> Date: Fri, 25 Aug 2023 14:32:11 +0800 Subject: [PATCH] fix: the search for comments by username yields empty results (#4481) 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.9.x #### What this PR does / why we need it: Console 评论列表中,使用用户名查询时携带 kind #### How to test it? 在 Console 端评论列表,选中右上角评论者,进行选择。 #### Which issue(s) this PR fixes: Fixes #4465 #### Does this PR introduce a user-facing change? ```release-note 解决评论列表根据评论者条件筛选时为空的问题 ``` --- console/src/modules/contents/comments/CommentList.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/console/src/modules/contents/comments/CommentList.vue b/console/src/modules/contents/comments/CommentList.vue index 5d74f4dd3..a83211236 100644 --- a/console/src/modules/contents/comments/CommentList.vue +++ b/console/src/modules/contents/comments/CommentList.vue @@ -95,6 +95,8 @@ const { sort: [selectedSort.value].filter(Boolean) as string[], keyword: keyword.value, ownerName: selectedUser.value, + // TODO: email users are not supported at the moment. + ownerKind: selectedUser.value ? "User" : undefined, }); total.value = data.total;