张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import Vue from 'vue';
import VueRouter from 'vue-router';
 
Vue.use(VueRouter)
const router = new VueRouter({
  // mode: 'history',
  routes: [{
    path: '/',
    name: '/',
    redirect: '/login',//青岛
    // redirect: '/changeCompany',//苏州
    hidden: false,
    meta: {
      title: '首页'
    }
  },
  {
    path: '/ScanBear',
    name: 'ScanBear',
    meta: {
      title: '质量追溯'
    },
    component: () => import('../views/ScanInfo/ScanBear.vue'),
  },
  {
    path: '/scanDetail',
    name: 'scanDetail',
    meta: {
      title: '大型生产设备信息'
    },
    component: () => import('../views/ScanInfo/ScanDetail.vue'),
  },
  {
    path: '/reinInfo',
    name: 'reinInfo',
    meta: {
      title: '钢筋笼信息'
    },
    component: () => import('../views/ScanInfo/ReinInfo.vue'),
  },
  {
    path: '/massInfo',
    name: 'massInfo',
    meta: {
      title: '模具信息'
    },
    component: () => import('../views/ScanInfo/MassInfo.vue'),
  },
  {
    path: '/changeCompany',
    name: 'changeCompany',
    meta: {
      title: '首页'
    },
    component: () => import('../views/HomeIndex/ChangeCompany.vue'),
  },
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录'
    },
    component: () => import('../views/LoginIndex/index'),
  },
   {
    path: '/404',
    name: '404',
    hidden: false,
    component: () => import('../views/ErrorIndex/index'),
    meta: {
      title: '404'
    }
  },
  {
    path: '*',
    name: 'red-404',
    hidden: false,
    redirect: '/404',
    meta: {
      title: '404'
    }
  }]
})
 
export default router