如果你是双击打开了 index.html,页面不会被 Vite 编译,所以会显示为空白。 请在项目目录运行 cmd /c npm run dev,然后访问 http://127.0.0.1:5173/。
index.html
cmd /c npm run dev
http://127.0.0.1:5173/