index.js 465 B

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