Blame view

code/finance_web/src/router/index.js 1011 Bytes
a  
谢明辉 committed
1 2 3 4 5 6 7
import Vue from 'vue'
import Router from 'vue-router'
import Nav from '@/components/nav'
import Login from '@/components/login'
import Search from '@/components/search'
import Contract from '@/components/contract'
import Manage from '@/components/manage'
a  
谢明辉 committed
8
import Main from '@/components/main'
谢明辉 committed
9
import User from '@/components/user'
a  
谢明辉 committed
10 11 12 13 14 15 16 17 18 19 20 21


Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      component: Login
    },
    {
      path: '/nav',
      component: Nav,
a  
谢明辉 committed
22
      name: "nav",
a  
谢明辉 committed
23
      children: [{
谢明辉 committed
24
          path: 'search',
a  
谢明辉 committed
25 26
          component: Search,
          name: 'search'
谢明辉 committed
27 28
        }, {
          path: 'contract/:contract_unid',
a  
谢明辉 committed
29 30
          component: Contract,
          name:"contract"
谢明辉 committed
31 32
        }, {
          path: 'manage',
a  
谢明辉 committed
33 34
          component: Manage,
          name:'manage'
谢明辉 committed
35 36
        }, {
          path: 'main',
a  
谢明辉 committed
37 38
          component: Main,
          name:'main'
谢明辉 committed
39 40
        }, {
          path: 'user',
a  
谢明辉 committed
41 42
          component: User,
          name:'user'
谢明辉 committed
43 44 45
        }

      ]
a  
谢明辉 committed
46 47 48
    }
  ]
})