diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue index 14a2ccc..b898a30 100644 --- a/ruoyi-ui/src/components/BoardTopNav/index.vue +++ b/ruoyi-ui/src/components/BoardTopNav/index.vue @@ -72,7 +72,12 @@ export default { async mounted() { if (this.$route.name === 'SmartScene' || this.$route.name === 'GPS' || this.$route.name === 'index' || this.$store.getters.sceneId) { } else { - await this.$router.replace({path: "/board/index"}); + if (this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')) { + await this.$router.replace({path: "/board/index"}); + } else { + await this.$router.replace({path: "/board/smartScene"}); + this.$router.push({path: '/board/smartScene'}) + } } await this.setSelectSecnes() if (this.$route.name === 'SmartScene' || this.$route.name === 'GPS') { diff --git a/ruoyi-ui/src/views/board/equipment/index.vue b/ruoyi-ui/src/views/board/equipment/index.vue index 9d280b4..b1d2c4a 100644 --- a/ruoyi-ui/src/views/board/equipment/index.vue +++ b/ruoyi-ui/src/views/board/equipment/index.vue @@ -70,7 +70,7 @@