This commit is contained in:
sunzhenyu 2021-05-12 10:53:12 +08:00
commit 9a5a9b7ff7

View File

@ -16,6 +16,7 @@ import { getPublishMapDetail,getPublish3dMapDetail} from '@/api/jlmap3d/load3dda
import StompClient from '@/utils/sock';
import store from '@/store/index';
import { getSessionStorage } from '@/utils/auth';
var clock = new THREE.Clock();
export function Jl3ddeviceNew(dom,group,token,skinCode) {
@ -201,10 +202,14 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
}
if(data.type == 'Simulation_Over'){
let projectDevice=getSessionStorage('projectDevice');
if(getSessionStorage('project').startsWith('heb')&&projectDevice){
store.dispatch('LogOut').then(() => {
location.reload();
});
}
}
}
let changeelement = document.getElementById('jl3d');
window.addEventListener('resize', () =>