From bf185c5d6a86eaa6a27d93b6d5942234d5bebb24 Mon Sep 17 00:00:00 2001
From: BirtYu <714851131@qq.com>
Date: 星期日, 13 四月 2025 09:05:35 +0800
Subject: [PATCH] Update register.vue

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