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 回调函数 ++ */} +