From b0530ed9211230227a8f94e394eda779d5ae5fc1 Mon Sep 17 00:00:00 2001
From: birt <2499248221@qq.com>
Date: 星期日, 13 四月 2025 01:51:52 +0800
Subject: [PATCH] birtzhang

---
 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