修改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

@ -2,17 +2,17 @@ import Vue from 'vue';
//main //main
// import {Three} from '@/jlmap3d/main/three.min.js'; // import {Three} from '@/jlmap3d/main/three.min.js';
//模型loader //模型loader
import { AssetLoader } from '@/jlmap3d/main/loaders/AssetLoader.js'; import {AssetLoader} from '@/jlmap3d/main/loaders/AssetLoader.js';
import {DDSLoader} from '@/jlmap3d/main/loaders/DDSLoader.js'; import DDSLoader from '@/jlmap3d/main/loaders/DDSLoader.js';
import {OBJLoader} from '@/jlmap3d/main/loaders/OBJLoader.js'; import OBJLoader from '@/jlmap3d/main/loaders/OBJLoader.js';
import {MTLLoader} from '@/jlmap3d/main/loaders/MTLLoader.js'; import MTLLoader from '@/jlmap3d/main/loaders/MTLLoader.js';
import { FBXLoader } from '@/jlmap3d/main/loaders/FBXLoader.js'; import FBXLoader from '@/jlmap3d/main/loaders/FBXLoader.js';
//controls //controls
import {OrbitControls} from '@/jlmap3d/control/OrbitControls.js'; import OrbitControls from '@/jlmap3d/control/OrbitControls.js';
import { DragControls } from '@/jlmap3d/edit/control/DragControls.js'; import DragControls from '@/jlmap3d/edit/control/DragControls.js';
//component //component
import {Helper} from '@/jlmap3d/component/Helper'; import { Helper } from '@/jlmap3d/component/Helper';
//data //data
import { Jl3ddata } from '@/jlmap3d/jl3ddata'; import { Jl3ddata } from '@/jlmap3d/jl3ddata';
@ -25,7 +25,7 @@ import { SetScene } from '@/jlmap3d/config/Scene';
//加载器 //加载器
import { ModelLoad } from '@/jlmap3d/model/ModelLoad'; import { ModelLoad } from '@/jlmap3d/model/ModelLoad';
//connect //connect
import {Jlmap3dSubscribe} from '@/jlmap3d/connect/TrainingConnect'; import { Jlmap3dSubscribe } from '@/jlmap3d/connect/TrainingConnect';
//import {Jlmap3dSubscribe} from '@/jlmap3d/connect/TrainingConnectTest'; //import {Jlmap3dSubscribe} from '@/jlmap3d/connect/TrainingConnectTest';
import { getPublishMapVersion, getPublishMapDetail,getPublish3dMapDetail} from '@/api/jlmap3d/load3ddata'; import { getPublishMapVersion, getPublishMapDetail,getPublish3dMapDetail} from '@/api/jlmap3d/load3ddata';
@ -34,7 +34,7 @@ import { UpdateTrain } from '@/jlmap3d/utils/UpdateTrain';
//import { UpdateTrain } from '@/jlmap3d/utils/UpdateTrainTest'; //import { UpdateTrain } from '@/jlmap3d/utils/UpdateTrainTest';
// import { ReStart } from '@/jlmap3d/utils/ReStart'; // 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(); var clock = new THREE.Clock();

View File

@ -18,9 +18,7 @@ import '@/icons'; // icon
import '@/permission'; // permission control import '@/permission'; // permission control
import '@/scripts/GlobalPlugin'; import '@/scripts/GlobalPlugin';
import '@/directives'; 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.use(ElementUI);
Vue.config.productionTip = false; Vue.config.productionTip = false;