index.js 662 B

1234567891011121314151617181920212223242526272829303132333435
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. export default new Router({
  5. routes: [
  6. {
  7. path: '/',
  8. name: 'landing-page',
  9. component: require('@/components/LandingPage').default
  10. },
  11. {
  12. path: '*',
  13. redirect: '/'
  14. },
  15. {
  16. path: '/config',
  17. name: 'config',
  18. component: require('@/components/Config').default
  19. },
  20. {
  21. path: '/blueTooth',
  22. name: 'blueTooth',
  23. component: require('@/components/BlueTooth').default
  24. },
  25. {
  26. path: '/rt_ble',
  27. name: 'rt_ble',
  28. component: require('@/components/ble/rt_ble').default
  29. },
  30. ]
  31. })