From 1efe9142bf07285dab8ae033506161fac3f26a50 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sat, 29 Mar 2025 09:06:03 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/command-center-dashboard

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

diff --git a/src/layout/Header.vue b/src/layout/Header.vue
index a1f5560..822e18f 100644
--- a/src/layout/Header.vue
+++ b/src/layout/Header.vue
@@ -53,12 +53,12 @@
   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);
   // 跳转到指定页面
@@ -69,12 +69,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>

--
Gitblit v1.9.3