From 61e6956be147e1e84e7104f16dd47e9f87f20dfd Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 18 Apr 2025 10:57:32 +0800
Subject: [PATCH] feat: 控制台显示一些信息

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

diff --git a/src/layout/Header.vue b/src/layout/Header.vue
index 822e18f..3e67c19 100644
--- a/src/layout/Header.vue
+++ b/src/layout/Header.vue
@@ -31,6 +31,7 @@
 import { useRouter, useRoute } from 'vue-router';
 import { Message } from '@element-plus/icons-vue';
 import { ElMessage } from 'element-plus';
+import { ELocalStorageKey } from '@/utils/http/enums';
 
 const router = useRouter();
 const route = useRoute();
@@ -50,7 +51,11 @@
 ]);
 
 const handleClick = ({ path, name }) => {
-  if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在开发中');
+  if (['系统运维'].includes(name)) {
+    window.open(import.meta.env.VITE_APP_ADMIN_URL + '?token=' + localStorage.getItem(ELocalStorageKey.Token), '_blank');
+    return;
+  }
+  if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在加急开发中...');
   // 更新 leftList 的 active 状态
   leftList.value.forEach(item => {
     item.active = item.path === path;
@@ -60,7 +65,6 @@
   rightList.value.forEach(item => {
     item.active = item.path === path;
   });
-  console.log(path);
   // 跳转到指定页面
   router.push(path);
 };
@@ -153,6 +157,7 @@
       text-align: center;
       font-style: normal;
       text-transform: none;
+			cursor: pointer;
     }
   }
 }

--
Gitblit v1.9.3