From 3a3a8244495329e21519275ba7d6f7328820884e Mon Sep 17 00:00:00 2001 From: Shua-github Date: Sun, 29 Dec 2024 16:06:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=B8=BB=E9=A1=B5=20U?= =?UTF-8?q?RL=20=E5=92=8C=E5=9B=BE=E7=89=87=E8=B5=84=E6=BA=90=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/App.jsx | 2 +- src/components/Picker.jsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index ef4e026..0caf1f6 100644 --- a/package.json +++ b/package.json @@ -42,5 +42,5 @@ "last 1 safari version" ] }, - "homepage": "https://shua-github.github.io/" + "homepage": "https://shua-github.github.io/arcaea-stickers-zh" } diff --git a/src/App.jsx b/src/App.jsx index 8fdd616..be6e861 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -83,7 +83,7 @@ function App() { setLoaded(false); }, [character]); - img.src = "/arcaea-stickers-zh/static/img/" + characters[character].img; + img.src = `${process.env.PUBLIC_URL}/static/img/` + characters[character].img; img.onload = () => { setLoaded(true); diff --git a/src/components/Picker.jsx b/src/components/Picker.jsx index c44ee98..93fd31d 100644 --- a/src/components/Picker.jsx +++ b/src/components/Picker.jsx @@ -50,8 +50,8 @@ export default function Picker({ setCharacter }) { }} > {c.name}