const loginAccount = () => import('@/components/loginAccount.vue')
const loginCode = () => import('@/components/loginCode.vue')
const password = () => import('@/components/password.vue')
const register = () => import('@/components/register.vue')

export const routes = [
  {
    path: '/wmp',
    component: () => import('./components/layout.vue'),
    redirect: '/wmp/login/index',
    children: [
      {
        path: 'login',
        component: () => import('./login.vue'),
        redirect: '/wmp/login/index',
        children: [
          { path: '', redirect: '/wmp/login/index' },
          { path: 'index', component: loginAccount },
          { path: 'code', component: loginCode, props: { sendcode: { signName: 'wmp', template: 'SMS_200181319' } } }
        ]
      },
      {
        path: 'password',
        component: () => import('./password.vue'),
        children: [{ path: '', component: password, props: { sendcode: { signName: 'wmp', template: 'SMS_200191908' } } }]
      },
      {
        path: 'register',
        component: () => import('./register.vue'),
        children: [{ path: '', component: register }]
      }
    ]
  }
]
