From be00cf3712c545f4ae97e249c0984cc2beece926 Mon Sep 17 00:00:00 2001
From: ustcyc <yincun@163.com>
Date: 星期日, 13 四月 2025 11:52:11 +0800
Subject: [PATCH] Merge pull request #57 from zhitan-cloud/develop1.0

---
 zhitan-vue/src/router/index.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/zhitan-vue/src/router/index.js b/zhitan-vue/src/router/index.js
index dff5256..154b3be 100644
--- a/zhitan-vue/src/router/index.js
+++ b/zhitan-vue/src/router/index.js
@@ -1,6 +1,7 @@
 import { createWebHistory, createRouter } from 'vue-router'
 /* Layout */
 import Layout from '@/layout'
+import useAppStore from '@/store/modules/app'
 
 /**
  * Note: 璺敱閰嶇疆椤�
@@ -66,7 +67,13 @@
         path: '/index',
         component: () => import('@/views/index'),
         name: 'Index',
-        meta: { title: '棣栭〉', icon: 'dashboard', affix: true }
+        meta: { title: '棣栭〉', icon: 'dashboard', affix: true, showSidebar: true, breadcrumb: false },
+        beforeEnter: (to, from, next) => {
+          // 鑾峰彇app store骞惰缃晶杈规爮涓烘姌鍙犵姸鎬�
+          const appStore = useAppStore()
+          appStore.showCollapsedSidebar()
+          next()
+        }
       }
     ]
   },

--
Gitblit v1.9.3