login.ts 841 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { AppRouteRecordRaw } from '../types';
  2. const routes: AppRouteRecordRaw = {
  3. path: '/login-home',
  4. component: () => import('@/views/login/home.vue'),
  5. children: [
  6. {
  7. path: '/login',
  8. name: 'Login',
  9. component: () => import('@/views/login/login/index.vue'),
  10. meta: {
  11. title: '登录',
  12. requiresAuth: false,
  13. },
  14. },
  15. {
  16. path: '/switch-exam',
  17. name: 'SwitchExam',
  18. component: () => import('@/views/login/login/SwitchExam.vue'),
  19. meta: {
  20. title: '切换考试',
  21. requiresAuth: true,
  22. },
  23. },
  24. {
  25. path: '/reset-info',
  26. name: 'ResetInfo',
  27. component: () => import('@/views/login/login/ResetInfo.vue'),
  28. meta: {
  29. title: '修改个人信息',
  30. requiresAuth: true,
  31. },
  32. },
  33. ],
  34. };
  35. export default routes;