1.创建一个新项目
npm create vite my-app
2.安装依赖
pnpm i
pnpm add @mui/material @emotion/react @emotion/styled
pnpm add react-pro-sidebar
pnpm add @mui/icons-material
pnpm add three @types/three @react-three/fiber @react-three/drei
pnpm add @types/three
pnpm add --save ahooks@next
3.处理模型
npx gltfjsx xxx.gltf