From fc7a8806078cf0c1c343830cb3c0a3ba3aa7cbf0 Mon Sep 17 00:00:00 2001 From: streakingman Date: Tue, 11 Oct 2022 22:51:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E6=A0=87=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Game.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Game.tsx b/src/components/Game.tsx index 9defb40..662fefd 100644 --- a/src/components/Game.tsx +++ b/src/components/Game.tsx @@ -10,7 +10,6 @@ import { LAST_LEVEL_STORAGE_KEY, LAST_SCORE_STORAGE_KEY, LAST_TIME_STORAGE_KEY, - linkReg, randomString, waitTimeout, } from '../utils'; @@ -133,8 +132,9 @@ const Symbol: FC = ({ x, y, icon, isCover, status, onClick }) => { style={{ opacity: isCover ? 0.4 : 1 }} > {typeof icon.content === 'string' ? ( - linkReg.test(icon.content) || - icon.content.startsWith('/') ? ( + icon.content.startsWith('data:') || + icon.content.startsWith('/') || + icon.content.startsWith('http') ? ( /*图片地址*/ ) : (