diff --git a/src/router/index.ts b/src/router/index.ts index e6bb2c3..1f97a93 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -155,12 +155,13 @@ export const constantRoutes: RouteRecordRaw[] = [ path: '', component: Layout, redirect: '/index', + hidden: true, children: [ { - path: '/index', - component: () => import('@/views/index.vue'), - name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } + path: 'index', + component: () => import('@/views/equipmentList/list.vue'), + name: 'EquipmentList', + meta: { title: '设备列表', icon: 'equipment', affix: true } } ] },