diff --git a/components/avatar/index.tsx b/components/avatar/index.tsx index 8034b99139..7dae88dbaa 100644 --- a/components/avatar/index.tsx +++ b/components/avatar/index.tsx @@ -83,7 +83,7 @@ export default class Avatar extends React.Component { const classString = classNames(prefixCls, className, sizeCls, { [`${prefixCls}-${shape}`]: shape, - [`${prefixCls}-image`]: src, + [`${prefixCls}-image`]: src && this.state.isImgExist, [`${prefixCls}-icon`]: icon, });