diff --git a/.env.development b/.env.development index c0924475f..e27190097 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ # just a flag NODE_ENV = 'development' -# VUE_APP_PRO = 'local' +VUE_APP_PRO = 'local' # base api # VUE_APP_BASE_API = 'https://joylink.club/jlcloud' diff --git a/src/jlmap3d/edit/Jlmap3dnewdata.js b/src/jlmap3d/edit/Jlmap3dnewdata.js index a4274f5b2..62a66ab97 100644 --- a/src/jlmap3d/edit/Jlmap3dnewdata.js +++ b/src/jlmap3d/edit/Jlmap3dnewdata.js @@ -18,6 +18,7 @@ export function Jlmap3ddata(mapid,scope){ let editmapid = mapid; let scene = scope.scene; let jlmap3ddata = scope.mapdata; + let jlmap3dasset = scope.assetManager; let assetloader = scope.assetloader; let loadingInstance = Loading.service({ fullscreen: true }); get3dMapData(editmapid).then(data => { @@ -120,7 +121,8 @@ export function Jlmap3ddata(mapid,scope){ let switchdata = JSON.parse(netdata.switchs); let signaldata = JSON.parse(netdata.signals); let standsdata = JSON.parse(netdata.stands); - // console.log(mapdata); + jlmap3dasset = JSON.parse(netdata.assets); + console.log(jlmap3dasset); assetloader.setmodellistnew(netdata.assets,5); assetloader.assetpromise(scene) .then(function(data){ diff --git a/src/jlmap3d/edit/jlmap3dedit.js b/src/jlmap3d/edit/jlmap3dedit.js index 59c7320e6..606be7ec6 100644 --- a/src/jlmap3d/edit/jlmap3dedit.js +++ b/src/jlmap3d/edit/jlmap3dedit.js @@ -95,7 +95,7 @@ export function JLmap3dEdit(dom, data, mapid) { raillist:null, path:[] }; - + this.assetManager = null; Jlmap3ddata(mapid,scope); let scalControls = new THREE.ScalControls(scope.scene,scope.camera, scope.renderer.domElement ); diff --git a/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js b/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js index ec0fc95e3..61748138c 100644 --- a/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js +++ b/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js @@ -14,6 +14,7 @@ import { getPublish3dMapDetail} from '@/api/jlmap3d/load3ddata'; import StompClient from '@/utils/sock'; +import { getToken } from '@/utils/auth'; import { logout } from '@/api/login'; var clock = new THREE.Clock(); diff --git a/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue b/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue index 4e8f65c50..93dac8a3b 100644 --- a/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue +++ b/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue @@ -47,10 +47,7 @@