由于浏览器安全策略,不能直接双击 index.html 打开(file:// 协议无法加载 ES Modules)。
请双击同目录下的 start.bat 一键启动预览,或手动执行:
start.bat
npx serve . 或 npx http-server . -p 8080
npx serve .
npx http-server . -p 8080
如果已用本地服务器打开但仍看到此提示,请刷新页面。