index.js 617 字节
Newer Older
J
Jeff Wang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
import Vue from 'vue'
import Router from 'vue-router'

import Scalars from '@/scalars/Scalars'
import Histogram from '@/histogram/Histogram'
import Images from '@/images/Images'
import Graph from '@/graph/Graph'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/scalars',
      name: 'Scalars',
      component: Scalars
    },
    {
      path: '/histograms',
      name: 'Histograms',
      component: Histogram
    },
    {
      path: '/images',
      name: 'Images',
      component: Images
    },
    {
      path: '/graphs',
      name: 'Graph',
      component: Graph
    },
  ]
})