From fdb071c9f6bd61bffda02279ab78efd0e74b23ee Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 22 Jul 2022 18:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=BC=A0=E6=A0=87=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/mapsystemNew/index.vue | 58 ++++++++++++------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/views/newMap/mapsystemNew/index.vue b/src/views/newMap/mapsystemNew/index.vue index 70b088ec4..13360dbce 100644 --- a/src/views/newMap/mapsystemNew/index.vue +++ b/src/views/newMap/mapsystemNew/index.vue @@ -23,9 +23,9 @@ export default { topic: '/user/queue/training', stomp: null, currentMap: null, - ierval: null, + // ierval: null, mouseNum: 1, - mouseNumTime: 0, + // mouseNumTime: 0, mapBoxP: null, mode: '', groupModel: '' @@ -78,7 +78,7 @@ export default { this.mode = this.$route.params.mode || ''; this.currentMap = this.$refs.mapCommon; this.groupModel = this.$route.query.group; - this.checkMouseStatusTimer(); // 鼠标样式变化检测 + // this.checkMouseStatusTimer(); // 鼠标样式变化检测 this.$nextTick(() => { setTimeout(() => { this.$store.dispatch('config/resetCanvasOffset'); @@ -88,7 +88,7 @@ export default { beforeDestroy() { this.clearSubscribe(); this.clearSubscribeNew(); - this.clearAllTimer(); + // this.clearAllTimer(); }, methods: { async mapViewLoaded(loading) { @@ -161,33 +161,33 @@ export default { this.mouseNum = 1; }, // 清除检查在线定时器 - clearAllTimer() { - if (this.ierval) { - clearInterval(this.ierval); - this.ierval = null; - } - }, + // clearAllTimer() { + // if (this.ierval) { + // clearInterval(this.ierval); + // this.ierval = null; + // } + // }, // 设置手标显示状态 checkMouseStatusTimer() { - if (this.ierval) { - clearInterval(this.ierval); - } - this.ierval = setInterval(() => { - if (this.mouseNum) { - this.mouseNum = 0; - this.mouseNumTime = 0; - if (this.mapBoxP) { - this.mapBoxP.style.cursor = this.mapBoxP.style.cursor != 'none' ? this.mapBoxP.style.cursor : ''; - } - } else { - this.mouseNumTime += 1; - } - if (this.mapBoxP) { - if (this.mouseNumTime >= 12) { - this.mapBoxP.style.cursor = 'none'; - } - } - }, 1000); + // if (this.ierval) { + // clearInterval(this.ierval); + // } + // this.ierval = setInterval(() => { + // if (this.mouseNum) { + // this.mouseNum = 0; + // this.mouseNumTime = 0; + // if (this.mapBoxP) { + // this.mapBoxP.style.cursor = this.mapBoxP.style.cursor != 'none' ? this.mapBoxP.style.cursor : ''; + // } + // } else { + // this.mouseNumTime += 1; + // } + // if (this.mapBoxP) { + // if (this.mouseNumTime >= 12) { + // this.mapBoxP.style.cursor = 'none'; + // } + // } + // }, 1000); }, initMemberUserInfo(isFirst = false) { if (this.$route.query.newApi + '' === 'true') {