guoyujie
2025-12-17 1f5cb7e48ca586cd7a3122db32b9bdf42179184f
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
import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
 
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
 
    {
      path: '/',
      name: 'login',
      component: () => import('@/views/LoginView.vue'),
    },
    {
      path: '/main',
      name: 'main',
      component: () => import('@/views/MainView.vue'),
      children: [
        {
          path: '/orderUnfinished',
          name: 'orderUnfinished',
          component: () => import('@/views/order/OrderUnfinishedView.vue'),
        },
        {
          path: '/orderHistory',
          name: 'orderHistory',
          component: () => import('@/views/order/OrderHistoryView.vue'),
        },
        {
          path: '/orderInquiry',
          name: 'orderInquiry',
          component: () => import('@/views/order/OrderInquiryView.vue'),
        },
        {
          path: '/register',
          name: 'register',
          component: () => import('@/views/RegisterView.vue'),
        },
        {
          path: '',
          redirect:'/orderUnfinished'
        }
      ]
    },
  ],
})
 
export default router