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 @@