router.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. export default createRouter({
  3. history: createWebHistory(),
  4. routes: [
  5. {
  6. path: '/login',
  7. component: () => import('./pages/login/index.vue'),
  8. },
  9. {
  10. path: '/register',
  11. component: () => import('./pages/register/index.vue'),
  12. },
  13. {
  14. path: '/password',
  15. component: () => import('./pages/password/index.vue'),
  16. },
  17. {
  18. path: '/imei/:action',
  19. component: () => import('./pages/imei/index.vue'),
  20. props: true,
  21. },
  22. {
  23. path: '/fill-order',
  24. component: () => import('./pages/fill-order/index.vue'),
  25. },
  26. {
  27. path: '/pay-result/:status',
  28. component: () => import('./pages/pay-result/index.vue'),
  29. props: true,
  30. },
  31. {
  32. path: '/account',
  33. component: () => import('./pages/account/index.vue'),
  34. },
  35. {
  36. path: '/order',
  37. component: () => import('./pages/my-order/index.vue'),
  38. },
  39. {
  40. path: '/gift-card',
  41. component: () => import('./pages/gift-card/index.vue'),
  42. },
  43. ],
  44. })