router.ts 551 B

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