1, 安装插件 npm install three --save
2, 在main.js中设置一下,将three.js挂载到vue上:
3,import * as Three from “three”;
4,Vue.prototype.$THREE = Three;
1, 安装插件 npm install three --save
2, 在main.js中设置一下,将three.js挂载到vue上:
3,import * as Three from “three”;
4,Vue.prototype.$THREE = Three;