Browse Source

修改默认跳转路径

main
ZhaoYang 20 hours ago
parent
commit
dd6f7eeb3d
  1. 29
      chenhai-ui/src/router/index.js

29
chenhai-ui/src/router/index.js

@ -75,25 +75,22 @@ export const constantRoutes = [
hidden: true hidden: true
}, },
{ {
path: 'index',
component: () => import('@/views/index'),
hidden: true
path: '',
component: Layout,
redirect: 'index',
children: [
{
path: 'index',
component: () => import('@/views/Home'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
}
]
}, },
// {
// path: '',
// component: Layout,
// redirect: 'index',
// children: [
// {
// path: 'index',
// component: () => import('@/views/index'),
// name: 'Index',
// meta: { title: '首页', icon: 'dashboard', affix: true }
// }
// ]
// },
{ {
path: '/lock', path: '/lock',
component: () => import('@/views/lock'), component: () => import('@/views/lock'),

Loading…
Cancel
Save