| | |
| | | component: () => import('@/views/error/401'),
|
| | | hidden: true
|
| | | },
|
| | |
|
| | | {
|
| | | path: '',
|
| | | component: Layout,
|
| | |
| | | component: () => import('@/views/index'),
|
| | | name: 'Index',
|
| | | meta: { title: '首页', icon: 'dashboard', affix: true }
|
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | path: '/equipment',
|
| | | component: Layout,
|
| | | redirect: '/equipment/iot-monitor',
|
| | | children: [
|
| | | {
|
| | | path: 'iot-monitor',
|
| | | component: () => import('@/views/equipmentManagement/iotMonitor/index.vue'),
|
| | | name: 'IoTMonitor',
|
| | | meta: { title: 'IoT监控', icon: 'monitor', noCache: true }
|
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | path: '/main/MobileChat',
|
| | | component: Layout,
|
| | | redirect: '',
|
| | | hidden: true,
|
| | | children: [
|
| | | {
|
| | | path: '',
|
| | | component: () => import('@/views/chatHome/chatHomeIndex/MobileChat'),
|
| | | name: 'MobileChat',
|
| | | meta: { title: 'AI对话', icon: 'dashboard', affix: true}
|
| | | }
|
| | | ]
|
| | | },
|
| | |
| | | scrollBehavior(to, from, savedPosition) {
|
| | | if (savedPosition) {
|
| | | return savedPosition
|
| | | } else {
|
| | | return { top: 0 }
|
| | | }
|
| | | return { top: 0 }
|
| | | },
|
| | | });
|
| | | })
|
| | |
|
| | | export default router;
|
| | | export default router
|