index.js 1.13 KB
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const installNode = {
  template: '<installNode />'
}
const installCli = {
  template: '<installCli />'
}
const introduce = {
  template: '<introduce />'
}
const easymock = {
  template: '<easymock />'
}
const configItem = {
  template: '<configItem />'
}
const configAuthority = {
  template: '<configAuthority />'
}
const tableIntroduce = {
  template: '<tableIntroduce />'
}

export default new Router({
  routes: [{
    path: '/',
    redirect: '/installNode'
  },
  {
    path: '/installNode',
    name: 'installNode',
    component: installNode
  },
  {
    path: '/installCli',
    name: 'installCli',
    component: installCli
  },
  {
    path: '/introduce',
    name: 'introduce',
    component: introduce
  },
  {
    path: '/easymock',
    name: 'easymock',
    component: easymock
  },
  {
    path: '/configItem',
    name: 'configItem',
    component: configItem
  },
  {
    path: '/configAuthority',
    name: 'configAuthority',
    component: configAuthority
  },
  {
    path: '/tableIntroduce',
    name: 'tableIntroduce',
    component: tableIntroduce
  }
  ]
})