Blame view

src/router/index.js 998 Bytes
a5f51b80   liuqimichale   完成页面
1
2
3
4
5
6
7
8
9
10
11
  import Vue from 'vue'
  import Router from 'vue-router'
  import home from '@/views/home'
  
  Vue.use(Router)
  
  export default new Router({
    linkExactActiveClass:'navActive',
    routes: [
      {
        path: '/',
4b010f97   liuqimichale   完成页面
12
        redirect:'/home'
a5f51b80   liuqimichale   完成页面
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
      },
      {
        path: '/home',
        name: 'home',
        component: home,
        meta: {
          title: '首页'
        }
      },
      {
        path: '/about',
        name: 'about',
        component: () => import('../views/about'),
        meta: {
          title: '关于我们'
        }
      },
      {
        path: '/service',
        name: 'service',
        component: () => import('../views/service'),
        meta: {
          title: '停车服务'
        }
      },
      {
        path: '/center',
        name: 'center',
        component: () => import('../views/center'),
        meta: {
          title: '官网中心'
        }
      },
      {
        path: '/park',
        name: 'park',
        component: () => import('../views/park'),
        meta: {
          title: '黄石停车'
        }
      },
  
    ]
  })