Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fix: user filter list will fail to load the avatar after searching (#885
Browse files Browse the repository at this point in the history
)

#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

修复用户筛选列表在搜索之后无法正常加载头像的问题。

#### Which issue(s) this PR fixes:

Fixes halo-dev/halo#3361

#### Screenshots:

<img width="455" alt="image" src="https://user-images.githubusercontent.com/21301288/221108789-291999ab-ee4f-478c-900b-4273e3780357.png">

#### Special notes for your reviewer:
 
测试方式:

1. 创建若干用户并设置头像。
2. 打开文章管理的用户筛选项,尝试输入关键词搜索,观察搜索出的用户头像是否加载正常。

#### Does this PR introduce a user-facing change?


```release-note
修复 Console 端用户筛选项,输入关键词搜索之后无法加载头像的问题。
```
  • Loading branch information
ruibaby authored Feb 24, 2023
1 parent e9d8f0f commit dc9c606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/dropdown-selector/UserDropdownSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const searchResults = computed(() => {
<VEntityField>
<template #description>
<VAvatar
:key="user.metadata.name"
:alt="user.spec.displayName"
:src="user.spec.avatar"
size="md"
Expand Down

1 comment on commit dc9c606

@vercel
Copy link

@vercel vercel bot commented on dc9c606 Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-main-halo-dev.vercel.app
ui-halo-dev.vercel.app
halo-admin-ui.vercel.app

Please sign in to comment.