import { AppRouteRecordRaw } from '../types';

const LOGIN: AppRouteRecordRaw = {
  path: '/login-home',
  component: () => import('@/views/login/home.vue'),
  children: [
    {
      path: '/login/:code?',
      name: 'Login',
      component: () => import('@/views/login/login/index.vue'),
      meta: {
        title: '登录',
        requiresAuth: false,
      },
    },
    {
      path: 'setting',
      name: 'Setting',
      component: () => import('@/views/login/setting/index.vue'),
      meta: {
        title: '设置',
        requiresAuth: false,
      },
    },
    {
      path: 'test-page',
      name: 'TestPage',
      component: () => import('@/views/login/test-page/index.vue'),
      meta: {
        title: '功能测试',
        requiresAuth: false,
      },
    },
  ],
};

export default LOGIN;
