From 6f36a564b94c7fd7e30ef055b60f7feb62ff7ee9 Mon Sep 17 00:00:00 2001 From: Zylan Date: Fri, 25 Apr 2025 13:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=BF=E9=97=AE=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BD=BF=E7=94=A8=20Script?= =?UTF-8?q?=20=E7=BB=84=E4=BB=B6=E5=BC=82=E6=AD=A5=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=84=9A=E6=9C=AC=EF=BC=8C=E5=B9=B6=E5=9C=A8?= =?UTF-8?q?=E9=A1=B5=E8=84=9A=E4=B8=AD=E6=98=BE=E7=A4=BA=E6=80=BB=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E9=87=8F=E5=92=8C=E6=80=BB=E8=AE=BF=E5=AE=A2=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7=E5=AF=B9=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E4=BA=92=E5=8A=A8=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 58 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f958a62..9eb30c2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,6 +4,7 @@ import React, { useState, useRef, ChangeEvent, DragEvent, TouchEvent, useEffect, // Image component from next/image might not be strictly needed if you only use canvas and basic elements, // but keep it if you plan to add other images later or use the SVG icon below. // Removed unused Image import +import Script from 'next/script'; // ++ 导入 Script 组件 ++ import beadPaletteData from './beadPaletteData.json'; @@ -982,6 +983,51 @@ export default function Home() { }; return ( + <> + {/* ++ 修改:添加 onLoad 回调函数 ++ */} +