From 7dd0db553842e0c79540a1b3ae8ca6d1292db2da Mon Sep 17 00:00:00 2001 From: lingting Date: Wed, 13 Oct 2021 19:02:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=B4=E5=83=8F=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NoticeIcon/NoticeList.tsx | 3 ++- src/components/RightContent/AvatarDropdown.tsx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/NoticeIcon/NoticeList.tsx b/src/components/NoticeIcon/NoticeList.tsx index dbe66d0..f23c3c1 100644 --- a/src/components/NoticeIcon/NoticeList.tsx +++ b/src/components/NoticeIcon/NoticeList.tsx @@ -4,6 +4,7 @@ import React from 'react'; import classNames from 'classnames'; // @ts-ignore import styles from './NoticeList.less'; +import Icon from '../Icon'; export type NoticeIconTabProps = { count?: number; @@ -55,7 +56,7 @@ const NoticeList: React.FC = ({ // eslint-disable-next-line no-nested-ternary const leftIcon = item.avatar ? ( typeof item.avatar === 'string' ? ( - + } /> ) : ( {item.avatar} ) diff --git a/src/components/RightContent/AvatarDropdown.tsx b/src/components/RightContent/AvatarDropdown.tsx index a4e5b8e..076ac39 100644 --- a/src/components/RightContent/AvatarDropdown.tsx +++ b/src/components/RightContent/AvatarDropdown.tsx @@ -10,6 +10,7 @@ import { outLogin } from '@/services/ant-design-pro/api'; import { User, Token } from '@/utils/Ballcat'; import I18n from '@/utils/I18nUtils'; import UrlUtils from '@/utils/UrlUtils'; +import Icon from '../Icon'; export type GlobalHeaderRightProps = { exitConfirm?: boolean; @@ -101,6 +102,7 @@ const AvatarDropdown: React.FC = ({ exitConfirm }) => { } className={styles.avatar} src={user?.info?.avatar ? UrlUtils.resolveImage(user.info.avatar) : undefined} alt="avatar"