index.js 284 B

12345678910111213141516171819
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import HomeView from '../views/screenIndex/index.vue'
  4. Vue.use(VueRouter)
  5. const routes = [
  6. {
  7. path: '/',
  8. name: 'index',
  9. component: HomeView
  10. }
  11. ]
  12. const router = new VueRouter({
  13. routes
  14. })
  15. export default router