From a0c58c699613f7ce6f9824117cfb4e614f37d6a6 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 16 Apr 2025 10:18:18 +0800
Subject: [PATCH] feat:系统运维跳转至后台

---
 src/layout/Header.vue |    5 +++++
 .env.development      |    2 ++
 .env.production       |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/.env.development b/.env.development
index 029d374..4792921 100644
--- a/.env.development
+++ b/.env.development
@@ -11,3 +11,5 @@
 # 航线文件地址
 VITE_APP_AIRLINE_URL = https://wrj.shuixiongit.com/minio/cloud-bucket
 
+#系统运维
+VITE_APP_ADMIN_URL = 'https://wrj.shuixiongit.com/manage'
\ No newline at end of file
diff --git a/.env.production b/.env.production
index 4a0e953..d4914e6 100644
--- a/.env.production
+++ b/.env.production
@@ -5,3 +5,5 @@
 VITE_BUILD_COMPRESS = gzip
 # ws地址
 VITE_APP_WS_API_URL = wss://wrj.shuixiongit.com/drone-wss/api/v1/ws
+# 管理后台地址
+VITE_APP_ADMIN_URL = ' https://aisky.org.cn/manage'
diff --git a/src/layout/Header.vue b/src/layout/Header.vue
index 17a4f57..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,6 +51,10 @@
 ]);
 
 const handleClick = ({ path, name }) => {
+  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 => {

--
Gitblit v1.9.3