index.js 343 B

123456789101112131415161718
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import authutils from '@/utils/authutils'
  4. import systemRoute from './system'
  5. Vue.use(Router)
  6. let routes = []
  7. routes = routes.concat(systemRoute)
  8. const router = new Router({
  9. mode: 'history',
  10. routes: routes
  11. })
  12. router.beforeEach(authutils.routerBeforeEach)
  13. export default router