From 9888eb4278a2c74f8533b468bba958cfffb7b125 Mon Sep 17 00:00:00 2001
From: birt <2499248221@qq.com>
Date: 星期日, 13 四月 2025 22:12:11 +0800
Subject: [PATCH] 折叠

---
 zhitan-vue/src/components/TopNav/index.vue |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/zhitan-vue/src/components/TopNav/index.vue b/zhitan-vue/src/components/TopNav/index.vue
index 85bc9e8..774132d 100644
--- a/zhitan-vue/src/components/TopNav/index.vue
+++ b/zhitan-vue/src/components/TopNav/index.vue
@@ -167,12 +167,7 @@
     return;
   } 
   
-  if (key === '/index' || key === '/') {
-    // 棣栭〉鏃舵樉绀烘姌鍙犵殑渚ц竟鏍忥紝鑰屼笉鏄殣钘�
-    router.push({ path: key });
-    appStore.showCollapsedSidebar();
-    return;
-  } 
+ 
   
   // 妫�鏌ユ槸鍚︽湁瀛愯矾鐢�
   if (route && route.children && route.children.length > 0) {
@@ -258,11 +253,7 @@
 
 function activeRoutes(key) {
   let routes = [];
-  if (key === '/index' || key === '/') {
-    // 棣栭〉鏃舵樉绀烘姌鍙犵殑渚ц竟鏍忥紝鑰屼笉鏄殣钘�
-    appStore.showCollapsedSidebar();
-    return [];
-  }
+ 
   
   // 鏌ユ壘鍖归厤鐨勮矾鐢�
   if (childrenMenus.value && childrenMenus.value.length > 0) {

--
Gitblit v1.9.3