From 0f0072585b9af704c92fcef3e1ef5faef477f2e6 Mon Sep 17 00:00:00 2001 From: streakingman Date: Tue, 11 Oct 2022 18:50:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20diy=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Game.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Game.tsx b/src/components/Game.tsx index 5ffd646..9defb40 100644 --- a/src/components/Game.tsx +++ b/src/components/Game.tsx @@ -133,7 +133,8 @@ const Symbol: FC = ({ 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('/') ? ( /*图片地址*/ ) : (