index.js 527 Bytes
import Vue from 'vue'
import VueRouter from 'vue-router'

import Main from '../views/Main.vue'
import Settings from '../views/Settings.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/settings'
  },
  {
    path: '/main',
    name: 'Main',
    component: Main
  },
  {
    path: '/settings',
    name: 'Settings',
    component: Settings
  }
]

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

export default router