fix: diy模式的图片路径

This commit is contained in:
streakingman 2022-10-11 18:50:03 +08:00
parent f6c25eb96a
commit 0f0072585b

View File

@ -133,7 +133,8 @@ const Symbol: FC<SymbolProps> = ({ x, y, icon, isCover, status, onClick }) => {
style={{ opacity: isCover ? 0.4 : 1 }}
>
{typeof icon.content === 'string' ? (
linkReg.test(icon.content) ? (
linkReg.test(icon.content) ||
icon.content.startsWith('/') ? (
/*图片地址*/
<img src={icon.content} alt="" />
) : (