From c215c89ecda16e4d32593f3e942fe871898071e9 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期一, 05 二月 2024 17:51:53 +0800 Subject: [PATCH] 代码提交 --- src/components/navMenu.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue index ee0583c..57b86e2 100644 --- a/src/components/navMenu.vue +++ b/src/components/navMenu.vue @@ -152,7 +152,13 @@ document.body.addEventListener('click', () => { this.showFlag = null; }, false); + // this.$bus.$on('closeMenuSecond', res => { + // this.showFlag = null; + // }) + window.addEventListener('message', (e) => { + this.showFlag = null; + }) }, computed: {}, methods: { @@ -261,7 +267,6 @@ } }, setLiClick(res, index) { - this.changeSelectStyle = index; sessionStorage.setItem('changeSelectStyle', index) sessionStorage.removeItem('hanleselectmochaitmo') @@ -269,10 +274,9 @@ // this.signInsertOpLog(this.listMenu[index].cnName, res.cnName) setTimeout(() => { - this.changeliSelect = res.cnName; sessionStorage.setItem('changeliSelect', res.cnName) - if (res.url.indexOf('http') != -1) { + if (res.url.indexOf('{fmeHost}') != -1) { this.$store.reporturl = res.url; sessionStorage.setItem('iframehttpurl', this.$store.reporturl) this.$router.push('/QualityInspection'); @@ -435,8 +439,8 @@ }; Window.ws = null; } - - if (index.indexOf('http') != -1) { +debugger + if (index.indexOf('{fmeHost}') != -1) { this.$router.push('/databaseMonitoring'); this.$store.commit('getIframe', index); } else if (isNaN(Number(index))) { -- Gitblit v1.9.3