diff --git a/src/views/jlmap3d/drive/jl3ddrive.vue b/src/views/jlmap3d/drive/jl3ddrive.vue index cfe78fde7..04a9087a0 100644 --- a/src/views/jlmap3d/drive/jl3ddrive.vue +++ b/src/views/jlmap3d/drive/jl3ddrive.vue @@ -163,12 +163,12 @@ export default { this.jlmap3d.endsocket(); this.jlmap3d.dispose(); this.jlmap3d = null; - + // window.removeEventListener('popstate', this.goBack, false); // this.$destroy(); } }, destroyed(){ - window.removeEventListener('popstate', this.goBack, false); + }, computed: { userId() { @@ -184,26 +184,26 @@ export default { this.backmsg = "退出"; } - if (window.history && window.history.pushState) { - history.pushState(null, null, document.URL); - window.addEventListener('popstate', this.goBack, false); - } + // if (window.history && window.history.pushState) { + // history.pushState(null, null, document.URL); + // window.addEventListener('popstate', this.goBack, false); + // } // this.$refs.mmiui.init(); }, methods: { - goBack(){ - if(this.$route.query.type == "DRIVE"){ - store.dispatch('LogOut').then(() => { - location.reload(); - }); - }else{ - this.$emit('showdriving'); - this.jlmap3d.eventoff(); - this.jlmap3d.animateoff(); - // this.jlmap3d = null; - } - // this.jlmap3d = null; - }, + // goBack(){ + // if(this.$route.query.type == "DRIVE"){ + // store.dispatch('LogOut').then(() => { + // location.reload(); + // }); + // }else{ + // this.$emit('showdriving'); + // this.jlmap3d.eventoff(); + // this.jlmap3d.animateoff(); + // // this.jlmap3d = null; + // } + // // this.jlmap3d = null; + // }, show: function (skinCode,group,zindex) { // console.log("show"); // console.log(skinCode);