index.js 680 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. const routes = [{
  3. path: '/',
  4. redirect: '/login'
  5. },
  6. {
  7. path: '/login',
  8. name: 'Login',
  9. component: () => import('@/view/login/index.vue')
  10. },
  11. {
  12. path: '/:catchAll(.*)',
  13. meta: {
  14. closeTab: true,
  15. },
  16. component: () => import('@/view/error/index.vue')
  17. },
  18. {
  19. path: '/dataDashboard',
  20. meta: {
  21. closeTab: true,
  22. },
  23. component: () => import('@/view/screen/dataDashboard.vue')
  24. },
  25. {
  26. path: '/dataScreen',
  27. meta: {
  28. closeTab: true
  29. },
  30. component: () => import('@/view/screen/dataScreen.vue')
  31. }
  32. ]
  33. const router = createRouter({
  34. history: createWebHashHistory(),
  35. routes,
  36. })
  37. export default router