修改js挂载

This commit is contained in:
sunzhenyu 2019-08-08 14:19:03 +08:00
parent b326cbf73f
commit 2aa7bfd759
2 changed files with 11 additions and 13 deletions

View File

@ -3,14 +3,14 @@ import Vue from 'vue';
// import {Three} from '@/jlmap3d/main/three.min.js';
//模型loader
import {AssetLoader} from '@/jlmap3d/main/loaders/AssetLoader.js';
import {DDSLoader} from '@/jlmap3d/main/loaders/DDSLoader.js';
import {OBJLoader} from '@/jlmap3d/main/loaders/OBJLoader.js';
import {MTLLoader} from '@/jlmap3d/main/loaders/MTLLoader.js';
import { FBXLoader } from '@/jlmap3d/main/loaders/FBXLoader.js';
import DDSLoader from '@/jlmap3d/main/loaders/DDSLoader.js';
import OBJLoader from '@/jlmap3d/main/loaders/OBJLoader.js';
import MTLLoader from '@/jlmap3d/main/loaders/MTLLoader.js';
import FBXLoader from '@/jlmap3d/main/loaders/FBXLoader.js';
//controls
import {OrbitControls} from '@/jlmap3d/control/OrbitControls.js';
import { DragControls } from '@/jlmap3d/edit/control/DragControls.js';
import OrbitControls from '@/jlmap3d/control/OrbitControls.js';
import DragControls from '@/jlmap3d/edit/control/DragControls.js';
//component
import { Helper } from '@/jlmap3d/component/Helper';
@ -34,7 +34,7 @@ import { UpdateTrain } from '@/jlmap3d/utils/UpdateTrain';
//import { UpdateTrain } from '@/jlmap3d/utils/UpdateTrainTest';
// import { ReStart } from '@/jlmap3d/utils/ReStart';
import {Stats} from '@/jlmap3d/main/lib/stats.min.js';
//import {Stats} from '@/jlmap3d/main/lib/stats.min.js';
var clock = new THREE.Clock();

View File

@ -18,9 +18,7 @@ import '@/icons'; // icon
import '@/permission'; // permission control
import '@/scripts/GlobalPlugin';
import '@/directives';
// window.THREE = require('@/jlmap3d/main/three.min.js');
// window.zlib = require('@/jlmap3d/main/inflate.min.js');
// console.log(zlib);
Vue.use(ElementUI);
Vue.config.productionTip = false;