路由修改

This commit is contained in:
zzyuan 2025-06-06 10:56:58 +08:00
parent 1cf4cc9a50
commit c195592f48
1 changed files with 22 additions and 8 deletions

View File

@ -65,14 +65,28 @@ export const constantRoutes = [
path: '', path: '',
component: Layout, component: Layout,
redirect: '/canteen/index', redirect: '/canteen/index',
// children: [ children: [
// { {
// path: 'index', path: 'index',
// component: () => import('@/views/index_v1'), component: () => import('@/views/index_v1'),
// name: 'Index', name: 'Index',
// meta: { title: '首页', icon: 'dashboard', affix: true } meta: { title: '首页', icon: 'dashboard', affix: true }
// } }
// ] ]
},
{
path: '/canteen',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [
{
path: 'index',
component: () => import('@/views/index_v1'),
name: 'index',
meta: { title: '食堂数据总览', icon: 'dashboard' }
}
]
}, },
{ {
path: '/user', path: '/user',