feat: diy模式区分入口

This commit is contained in:
streakingman
2022-10-08 22:51:41 +08:00
parent e6449f9d8c
commit 34e89fe232
28 changed files with 210 additions and 21 deletions
+3 -2
View File
@@ -142,8 +142,9 @@ const Symbol: FC<SymbolProps> = ({ x, y, icon, isCover, status, onClick }) => {
style={{ opacity: isCover ? 0.4 : 1 }}
>
{typeof icon.content === 'string' ? (
icon.content.startsWith('http') ? (
/*图片外链*/
icon.content.startsWith('http') ||
icon.content.startsWith('/') ? (
/*图片地址*/
<img src={icon.content} alt="" />
) : (
/*字符表情*/