import Vue from 'vue'
import VueRouter from 'vue-router'
import spacetask from '../views/spacetask.vue'
import qrcode from '../views/qrcode.vue'
import workscope from '../views/workscope.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'workscope',
    component: workscope
  },
  {
    path: '/spacetask',
    name: 'spacetask',
    component: spacetask
  },
  {
    path: '/qrcode',
    name: 'qrcode',
    component: qrcode
  },
  {
    path: '/workscope',
    name: 'workscope',
    component: workscope
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
