下载项目
https://github.com/kovacsv/Online3DViewer
下载代码之后下载依赖
npm install (不要用淘宝镜会报错)
打包
yarn run build_dev
yarn run build_engine_dev
yarn run build_website_dev
然后把项目复制到新的项目中
<iframe
key={1 + ''}
width="100%"
height="800px"
style={{ border: '0.5px solid #eeeeee' }}
src={`本地地址/index.html#model=3d模型地址`}
></iframe>