From 95cfbfa9d51fcbb6493a267daccf1cde76bbcf6f Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期一, 23 六月 2025 17:00:23 +0800 Subject: [PATCH] fix:修改配置 --- .gitignore | 1 + src/screen/index.vue | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 944c283..78368b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules .idea/ +.vscode/* diff --git a/src/screen/index.vue b/src/screen/index.vue index 96887d6..0226b27 100644 --- a/src/screen/index.vue +++ b/src/screen/index.vue @@ -31,10 +31,10 @@ <div class="nav"> <div class="nav-content"> <div class="nav-content-l"> - <div v-for="(item,index) in btnList.slice(0,4)" :key="index" @click="navTo(item)" class="plain" :class="item.url === route.path ? 'active' : ''">{{ item.name }}</div> + <div v-for="(item,index) in btnList.slice(0,2)" :key="index" @click="navTo(item)" class="plain" :class="item.url === route.path ? 'active' : ''">{{ item.name }}</div> </div> <div class="nav-content-r"> - <div v-for="(item,index) in btnList.slice(4,8)" :key="index" @click="navTo(item)" class="plain" :class="item.url === route.path ? 'active' : ''">{{ item.name }}</div> + <div v-for="(item,index) in btnList.slice(2,4)" :key="index" @click="navTo(item)" class="plain" :class="item.url === route.path ? 'active' : ''">{{ item.name }}</div> </div> </div> </div> @@ -57,7 +57,6 @@ }).then((e) => { removeToken() window.location.reload(); - }).catch(() => { }); } @@ -68,6 +67,7 @@ const btnList = ref([ {name:'首页总览',url:'/screen/home'}, {name:'设备管理',url:'/screen/device'}, + {name:'报表管理',url:''}, {name:'系统监管',url:'/user'}, ]) @@ -117,7 +117,7 @@ height: 10%; .top{ position: relative; - z-index: 1000; + z-index: 100; width: 100%; height: 5.5rem; background-image: url("../assets/images/screen/head.png"); @@ -215,9 +215,9 @@ } .nav{ position: relative; - z-index: 100; - margin-top: -4.5rem; - width: 100%; + z-index: 110; + width: 80%; + margin: -4.5rem auto; display: flex; justify-content: space-between; align-items: center; @@ -238,6 +238,7 @@ &-r{ width: 35%; display: flex; + justify-content: flex-end; } .plain{ width: 10rem; -- Gitblit v1.9.3