Commit 4e88579ca2ba0406dcf7c81de69fbb82c6de96a1

Authored by liuqimichale
1 parent 834666d0

政府初始化

webintroduce/src/components/VHeader.vue
@@ -23,7 +23,7 @@ export default { @@ -23,7 +23,7 @@ export default {
23 navLinks: [ 23 navLinks: [
24 { name: '首页', linkPath: '/home' }, 24 { name: '首页', linkPath: '/home' },
25 { name: '解决方案', linkPath: '/solution' }, 25 { name: '解决方案', linkPath: '/solution' },
26 - { name: '政府', linkPath: '/solution' }, 26 + { name: '政府', linkPath: '/government' },
27 { name: '企业', linkPath: '/enterprise' }, 27 { name: '企业', linkPath: '/enterprise' },
28 { name: '车主', linkPath: '/solution' }, 28 { name: '车主', linkPath: '/solution' },
29 ] 29 ]
webintroduce/src/router/index.js
@@ -3,6 +3,7 @@ import Router from 'vue-router' @@ -3,6 +3,7 @@ import Router from 'vue-router'
3 import home from '../views/home' 3 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 7
7 Vue.use(Router) 8 Vue.use(Router)
8 9
@@ -36,16 +37,15 @@ export default new Router({ @@ -36,16 +37,15 @@ export default new Router({
36 meta: { 37 meta: {
37 title: '企业', 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 ]
webintroduce/src/views/government.vue 0 → 100644
  1 +<template>
  2 + <div>1</div>
  3 +</template>
  4 +
  5 +<script>
  6 +export default {
  7 + name: 'government'
  8 +}
  9 +</script>
  10 +
  11 +<style scoped lang="scss">
  12 +
  13 +</style>