mirror of https://github.com/halo-dev/halo
fix: the search for comments by username yields empty results (#4481)
#### 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 解决评论列表根据评论者条件筛选时为空的问题 ```pull/4484/head
parent
42ef7265c7
commit
ec0187d8aa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue