From 7b691403dbb4bd96dbfeaee2b95213db24cff302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 19 Sep 2023 18:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/BoardTopNav/index.vue | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue index fe5d892..bc82330 100644 --- a/ruoyi-ui/src/components/BoardTopNav/index.vue +++ b/ruoyi-ui/src/components/BoardTopNav/index.vue @@ -2,18 +2,21 @@
智慧物联监控平台
-
+
监控主页
- + {{ name }} - - {{ i.sceneName }} + + {{ + i.sceneName + }} +
@@ -29,13 +32,13 @@
-
+
管 理
-
+
@@ -49,7 +52,7 @@ export default { data() { return { selectSecnesList: [], - name:'智慧场景' + name: '智慧场景' } }, props: { @@ -61,8 +64,8 @@ export default { mounted() { this.setSelectSecnes() - if(this.$route.name === 'SmartScene'){ - if(this.$route.query?.name){ + if (this.$route.name === 'SmartScene') { + if (this.$route.query?.name) { this.name = this.$route.query?.name } } @@ -72,12 +75,16 @@ export default { const {data} = await selectSecnes() this.selectSecnesList = data }, - toLink(e){ - this.$router.push({ path: "/board/"+e }); + toLink(e) { + this.$router.push({path: "/board/" + e}); }, - dropdownLink(e){ + dropdownLink(e) { this.name = e.name - this.$router.push({ path: "/board/"+(e.router||'smartScene'),query: {name: e.name} }); + this.$router.push({path: "/board/" + (e.router || 'smartScene'), query: {name: e.name}}); + }, + toIndex() { + console.log(123) + this.$router.push({path: "/index"}); } } };