diff --git a/dist/img/icon/error.svg b/dist/img/icon/error.svg new file mode 100644 index 0000000000..eaecfa393e --- /dev/null +++ b/dist/img/icon/error.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/ts/component/util/iconObject.tsx b/src/ts/component/util/iconObject.tsx index 4ecdabc21f..2c8e3fc90f 100644 --- a/src/ts/component/util/iconObject.tsx +++ b/src/ts/component/util/iconObject.tsx @@ -485,7 +485,7 @@ const IconObject = observer(forwardRef((props, ref) = img.off('error').on('error', () => { node.addClass('withImageError'); - img.hide(); + img.attr({ src: './img/icon/error.svg', class: `iconCommon c${IconSize[size]}` }); }); }, []);