text: import Vue from 'vue'
  import VueRouter from 'vue-router'
  import ConfigRouter from './router'
  import App from './App.vue'
  
  Vue.config.devtools = true
  
  Vue.use(VueRouter)
  
  // Set up a new router
  var router = new VueRouter()
  
  ConfigRouter(router)
  
  // For every new route scroll to the top of the page
  router.beforeEach(function() {
    window.scrollTo(0, 0)
  })
  
  // If no route is matched redirect home
  router.redirect({
    '*': '/'
  })
  
  // Start up our app
  router.start(App, '#root')
  