From 7138a02900f3c712766c6b01dd04a28fa4c1d4db Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 12 May 2021 10:41:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E9=87=8C=E5=9C=A8=E6=89=93?= =?UTF-8?q?=E5=BC=80=E8=AE=BE=E5=A4=87=E8=A7=86=E5=9B=BE=E7=9A=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=8B=EF=BC=8C=E7=82=B9=E5=87=BB=E5=8F=B3=E4=B8=8B?= =?UTF-8?q?=E8=A7=92=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=20bug=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3ddevice/jl3ddeviceNew.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js b/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js index bf206288d..ac4ea3ce5 100644 --- a/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js +++ b/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js @@ -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,9 +202,13 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) { } if(data.type == 'Simulation_Over'){ - store.dispatch('LogOut').then(() => { - location.reload(); - }); + let projectDevice=getSessionStorage('projectDevice'); + if(getSessionStorage('project').startsWith('heb')&&projectDevice){ + store.dispatch('LogOut').then(() => { + location.reload(); + }); + } + } } let changeelement = document.getElementById('jl3d');