index.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import ElementUI from 'element-ui'
  4. import 'element-ui/lib/theme-chalk/index.css'
  5. import police from '@/components/police'
  6. import blockly from '@/components/blockly'
  7. import function1 from '@/components/function'
  8. import camera from '@/components/camera'
  9. import test from '@/components/test'
  10. import shop from '@/components/shop'
  11. import light from '@/components/light'
  12. import demo from '@/components/tuoDemo'
  13. Vue.use(Router).use(ElementUI)
  14. export default new Router({
  15. routes: [
  16. {
  17. path: '/',
  18. name: 'police',
  19. component: police
  20. },
  21. {
  22. path: '/blockly',
  23. name: 'blockly',
  24. component: blockly
  25. },
  26. {
  27. path: '/function',
  28. name: 'function',
  29. component: function1
  30. },
  31. {
  32. path: '/camera',
  33. name: 'camera',
  34. component: camera
  35. },
  36. {
  37. path: '/test',
  38. name: 'test',
  39. component: test
  40. },
  41. {
  42. path: '/light',
  43. name: 'light',
  44. component: light
  45. },
  46. {
  47. path: '/shop',
  48. name: 'shop',
  49. component: shop
  50. }
  51. ,
  52. {
  53. path: '/demo',
  54. name: 'demo',
  55. component: demo
  56. }
  57. ]
  58. })