From b0ccd2d131b2e3df5d901385e38ed0077b8d0fbc Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 14 Apr 2025 12:31:31 +0800
Subject: [PATCH] feat:修改任务管理内容

---
 src/layout/Header.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/layout/Header.vue b/src/layout/Header.vue
index 1f8d39b..17a4f57 100644
--- a/src/layout/Header.vue
+++ b/src/layout/Header.vue
@@ -11,7 +11,7 @@
         {{ item.name }}
       </div>
     </div>
-    <div class="big-title">江西省指挥调度平台</div>
+    <div class="big-title">西湖区指挥调度平台</div>
     <div class="h-right">
       <div
         v-for="(item, index) in rightList"
@@ -50,17 +50,16 @@
 ]);
 
 const handleClick = ({ path, name }) => {
-  if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在开发中');
+  if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在加急开发中...');
   // 更新 leftList 的 active 状态
   leftList.value.forEach(item => {
-    item.active = item.router === path;
+    item.active = item.path === path;
   });
 
   // 更新 rightList 的 active 状态
   rightList.value.forEach(item => {
-    item.active = item.router === path;
+    item.active = item.path === path;
   });
-  console.log(path);
   // 跳转到指定页面
   router.push(path);
 };
@@ -69,12 +68,12 @@
   // 初始化 leftList 的 active 状态
   const currentPath = route.path;
   leftList.value.forEach(item => {
-    item.active = item.router === currentPath;
+    item.active = item.path === currentPath;
   });
 
   // 初始化 rightList 的 active 状态
   rightList.value.forEach(item => {
-    item.active = item.router === currentPath;
+    item.active = item.path === currentPath;
   });
 });
 </script>
@@ -153,6 +152,7 @@
       text-align: center;
       font-style: normal;
       text-transform: none;
+			cursor: pointer;
     }
   }
 }

--
Gitblit v1.9.3