Browse Source

修改默认跳转路径

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

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

@ -75,21 +75,34 @@ export const constantRoutes = [
hidden: true hidden: true
}, },
{ {
path: '', path: '',
component: Layout,
component: (resolve) => require(['@/views/Home'], resolve),
redirect: 'index', redirect: 'index',
children: [ children: [
{ {
path: 'index', path: 'index',
component: () => import('@/views/Home'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
name: '首页',
hidden: true
// meta: { title: '首页', icon: 'dashboard', noCache: true, 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',

Loading…
Cancel
Save