index.js 628 B

12345678910111213141516171819202122232425262728
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import canvasShowPage from '@@/components/canvasShow/canvasShowPage'
  4. import canvasEditPage from '@@/components/canvasEditPage'
  5. import canvasContainer from '../views/canvasContainer'
  6. Vue.use(Router)
  7. const router = new Router({
  8. routes: [
  9. {
  10. path: '/canvasShowPage',
  11. name: 'canvasShowPage',
  12. component: canvasShowPage
  13. },
  14. {
  15. path: '/canvasEditPage',
  16. name: 'canvasEditPage',
  17. component: canvasEditPage
  18. },
  19. {
  20. path: '/',
  21. name: 'canvasContainer',
  22. component: canvasContainer
  23. }
  24. ]
  25. })
  26. export default router