修改综合演练三维驾驶退出
This commit is contained in:
parent
93e0b71ab4
commit
df3b8eebd7
@ -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();
|
||||
|
@ -59,6 +59,9 @@ import { JLmapDriving } from '@/jlmap3d/jl3ddrive/jl3ddrive';
|
||||
import DriveMmi from '@/views/jlmap3d/drive/sceneview/mmiview';
|
||||
import DriveTms from '@/views/jlmap3d/drive/sceneview/tmsview';
|
||||
import DriveControl from '@/views/jlmap3d/drive/drivecontrol/drivecontrol';
|
||||
|
||||
import { getToken } from '@/utils/auth';
|
||||
import { logout } from '@/api/login';
|
||||
var train;
|
||||
export default {
|
||||
name: 'Jl3dDrive',
|
||||
@ -239,10 +242,21 @@ export default {
|
||||
},
|
||||
|
||||
back() {
|
||||
this.$emit('showdriving');
|
||||
this.jlmap3d.eventoff();
|
||||
this.jlmap3d.animateoff();
|
||||
// this.jlmap3d = null;
|
||||
if(this.$route.query.type == "DRIVE"){
|
||||
logout(getToken()).then(() => {
|
||||
window.location.reload();
|
||||
}).catch(error => {
|
||||
|
||||
});
|
||||
}else{
|
||||
this.$emit('showdriving');
|
||||
this.jlmap3d.eventoff();
|
||||
this.jlmap3d.animateoff();
|
||||
// this.jlmap3d = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
showplane() {
|
||||
if (this.mmishow == true) {
|
||||
|
Loading…
Reference in New Issue
Block a user