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