index.ts
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { createRouter, createWebHistory } from 'vue-router'
import DefaultLayout from '../layouts/DefaultLayout.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
component: DefaultLayout,
redirect: '/order-list',
children: [
{
path: '/order-list',
name: '质检工单列表',
component: () => import('../views/OrderList.vue')
},
{
path: '/order-detail/:id',
name: '质检工单详情',
component: () => import('../views/OrderDetail.vue'),
meta: { hideInMenu: true }
},
{
path: '/stats/quality',
name: '质检工单数据',
component: () => import('../views/stats/QualityStats.vue')
},
{
path: '/stats/device',
name: '设备识别数据',
component: () => import('../views/stats/DeviceStats.vue')
},
{
path: '/stats/serial',
name: '串号数据统计',
component: () => import('../views/stats/SerialStats.vue')
},
{
path: '/stats/no-photo',
name: '无法拍摄数据',
component: () => import('../views/stats/NoPhotoStats.vue')
}
]
}
]
})
export default router