router.ts 654 B

12345678910111213141516171819202122232425262728
  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. })