From 500582d191164bb8d32f438b79ce6bcfb836353c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 26 Apr 2024 16:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/BoardTopNav/index.vue | 6 +- ruoyi-ui/src/views/board/equipment/index.vue | 38 +++++- ruoyi-ui/src/views/board/senso/index.vue | 122 +++++++++--------- ruoyi-ui/src/views/board/smartScene/index.vue | 73 +++++++---- 4 files changed, 148 insertions(+), 91 deletions(-) diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue index 8b063f4..b78f690 100644 --- a/ruoyi-ui/src/components/BoardTopNav/index.vue +++ b/ruoyi-ui/src/components/BoardTopNav/index.vue @@ -124,8 +124,10 @@ export default { await this.$store.dispatch('app/setSceneId', this.sceneId) }, toLink(e, nowMenu) { - this.nowMenu = nowMenu - this.$router.replace({path: "/board/" + e}); + if (this.$store.getters.sceneId) { + this.nowMenu = nowMenu + this.$router.replace({path: "/board/" + e}); + } }, async dropdownLink(e,) { this.nowMenu = '2' diff --git a/ruoyi-ui/src/views/board/equipment/index.vue b/ruoyi-ui/src/views/board/equipment/index.vue index 9f8f214..f86666c 100644 --- a/ruoyi-ui/src/views/board/equipment/index.vue +++ b/ruoyi-ui/src/views/board/equipment/index.vue @@ -1,5 +1,5 @@