index.js 814 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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/bleIndex').default
  29. },
  30. {
  31. path: '/char_server',
  32. name: 'char_server',
  33. component: require('@/components/ble/characteristicsServers').default
  34. },
  35. ]
  36. })