Commit 4e88579ca2ba0406dcf7c81de69fbb82c6de96a1
1 parent
834666d0
政府初始化
Showing
3 changed files
with
24 additions
and
11 deletions
webintroduce/src/components/VHeader.vue
... | ... | @@ -23,7 +23,7 @@ export default { |
23 | 23 | navLinks: [ |
24 | 24 | { name: '首页', linkPath: '/home' }, |
25 | 25 | { name: '解决方案', linkPath: '/solution' }, |
26 | - { name: '政府', linkPath: '/solution' }, | |
26 | + { name: '政府', linkPath: '/government' }, | |
27 | 27 | { name: '企业', linkPath: '/enterprise' }, |
28 | 28 | { name: '车主', linkPath: '/solution' }, |
29 | 29 | ] | ... | ... |
webintroduce/src/router/index.js
... | ... | @@ -3,6 +3,7 @@ import Router from 'vue-router' |
3 | 3 | import home from '../views/home' |
4 | 4 | const solution = () => import('../views/solution') |
5 | 5 | const enterprise = () => import('../views/enterprise') |
6 | +const government = () => import('../views/government') | |
6 | 7 | |
7 | 8 | Vue.use(Router) |
8 | 9 | |
... | ... | @@ -36,16 +37,15 @@ export default new Router({ |
36 | 37 | meta: { |
37 | 38 | title: '企业', |
38 | 39 | }, |
39 | - child:[ | |
40 | - { | |
41 | - path: '/enterprise/:id', | |
42 | - name: 'enterprise', | |
43 | - component: enterprise, | |
44 | - meta: { | |
45 | - title: '企业', | |
46 | - }, | |
47 | - } | |
48 | - ] | |
40 | + }, | |
41 | + { | |
42 | + path: '/government', | |
43 | + name: 'government', | |
44 | + component: government, | |
45 | + meta: { | |
46 | + title: '政府', | |
47 | + }, | |
48 | + | |
49 | 49 | }, |
50 | 50 | |
51 | 51 | ] | ... | ... |