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
| import { createRouter, createWebHistory } from 'vue-router'
|
| const routes = [
| {
| path: '/',
| redirect: '/dashboard'
| },
| {
| path: '/dashboard',
| name: 'Dashboard',
| component: () => import('@/views/Dashboard.vue'),
| meta: { title: 'WMS综合看板' }
| },
| {
| path: '/warehouse',
| name: 'Warehouse',
| component: () => import('@/views/Warehouse.vue'),
| meta: { title: '仓库监控' }
| },
| {
| path: '/production',
| name: 'Production',
| component: () => import('@/views/Production.vue'),
| meta: { title: '生产监控' }
| },
| {
| path: '/inventory',
| name: 'Inventory',
| component: () => import('@/views/Inventory.vue'),
| meta: { title: '库存预警' }
| },
| {
| path: '/api-example',
| name: 'ApiExample',
| component: () => import('@/examples/ApiExample.vue'),
| meta: { title: 'API调用示例' }
| }
| ]
|
| const router = createRouter({
| history: createWebHistory(),
| routes
| })
|
| export default router
|
|