| | |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/social-callback', |
| | | component: () => import('@/layout/components/SocialCallback/index'), |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/register', |
| | | component: () => import('@/views/register'), |
| | | hidden: true |
| | |
| | | path: '/index', |
| | | component: () => import('@/views/index'), |
| | | name: 'Index', |
| | | meta: { title: '首页', icon: 'dashboard', affix: true, showSidebar: true, breadcrumb: false }, |
| | | beforeEnter: (to, from, next) => { |
| | | // 获取app store并设置侧边栏为折叠状态 |
| | | const appStore = useAppStore() |
| | | appStore.showCollapsedSidebar() |
| | | next() |
| | | } |
| | | meta: { title: '首页', icon: 'dashboard', affix: true, showSidebar: true, breadcrumb: false } |
| | | } |
| | | ] |
| | | }, |