From 711ba0adbcc4a0c5bc19cbc07778cc65de2a5dbf Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 21 三月 2025 15:56:45 +0800
Subject: [PATCH] 建设内容

---
 src/components/TopNav/index.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue
index f214245..b7673c6 100644
--- a/src/components/TopNav/index.vue
+++ b/src/components/TopNav/index.vue
@@ -33,7 +33,6 @@
 
 <script>
 import { constantRoutes } from "@/router";
-import { isHttp } from "@/utils/validate";
 
 // 闅愯棌渚ц竟鏍忚矾鐢�
 const hideList = ['/index', '/user/profile'];
@@ -79,7 +78,7 @@
             if(router.path === "/") {
               router.children[item].path = "/" + router.children[item].path;
             } else {
-              if(!isHttp(router.children[item].path)) {
+              if(!this.ishttp(router.children[item].path)) {
                 router.children[item].path = router.path + "/" + router.children[item].path;
               }
             }
@@ -127,7 +126,7 @@
     handleSelect(key, keyPath) {
       this.currentIndex = key;
       const route = this.routers.find(item => item.path === key);
-      if (isHttp(key)) {
+      if (this.ishttp(key)) {
         // http(s):// 璺緞鏂扮獥鍙f墦寮�
         window.open(key, "_blank");
       } else if (!route || !route.children) {
@@ -161,6 +160,9 @@
       } else {
         this.$store.dispatch('app/toggleSideBarHide', true);
       }
+    },
+    ishttp(url) {
+      return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1
     }
   },
 };
@@ -178,7 +180,7 @@
 
 .topmenu-container.el-menu--horizontal > .el-menu-item.is-active, .el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
   border-bottom: 2px solid #{'var(--theme)'} !important;
-  color: #303133;
+  color: #000000;
 }
 
 /* submenu item */

--
Gitblit v1.8.0