Commit 76b867f41349ab518371a0652f2223dce5c24757
1 parent
441e495d
车主初始化
Showing
3 changed files
with
24 additions
and
2 deletions
webintroduce/src/components/VHeader.vue
| @@ -25,7 +25,7 @@ export default { | @@ -25,7 +25,7 @@ export default { | ||
| 25 | { name: '解决方案', linkPath: '/solution' }, | 25 | { name: '解决方案', linkPath: '/solution' }, |
| 26 | { name: '政府', linkPath: '/government' }, | 26 | { name: '政府', linkPath: '/government' }, |
| 27 | { name: '企业', linkPath: '/enterprise' }, | 27 | { name: '企业', linkPath: '/enterprise' }, |
| 28 | - { name: '车主', linkPath: '/solution' }, | 28 | + { name: '车主', linkPath: '/owner' }, |
| 29 | ] | 29 | ] |
| 30 | } | 30 | } |
| 31 | }, | 31 | }, |
webintroduce/src/router/index.js
| @@ -4,6 +4,7 @@ import home from '../views/home' | @@ -4,6 +4,7 @@ import home from '../views/home' | ||
| 4 | const solution = () => import('../views/solution') | 4 | const solution = () => import('../views/solution') |
| 5 | const enterprise = () => import('../views/enterprise') | 5 | const enterprise = () => import('../views/enterprise') |
| 6 | const government = () => import('../views/government') | 6 | const government = () => import('../views/government') |
| 7 | +const owner = () => import('../views/owner') | ||
| 7 | 8 | ||
| 8 | Vue.use(Router) | 9 | Vue.use(Router) |
| 9 | 10 | ||
| @@ -45,8 +46,16 @@ export default new Router({ | @@ -45,8 +46,16 @@ export default new Router({ | ||
| 45 | meta: { | 46 | meta: { |
| 46 | title: '政府', | 47 | title: '政府', |
| 47 | }, | 48 | }, |
| 48 | - | ||
| 49 | }, | 49 | }, |
| 50 | + { | ||
| 51 | + path: '/owner', | ||
| 52 | + name: 'owner', | ||
| 53 | + component: owner, | ||
| 54 | + meta: { | ||
| 55 | + title: '车主', | ||
| 56 | + }, | ||
| 57 | + }, | ||
| 58 | + | ||
| 50 | 59 | ||
| 51 | ] | 60 | ] |
| 52 | }) | 61 | }) |