routes.js 593 Bytes
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4
import authRoutes from './authRoutes';

let allauth = authRoutes; // .map((it) => ({ ...it, wrappers: ['@/wrappers/auth'] }));

TZW's avatar
TZW committed
5
//console.log(allauth);
TZW's avatar
TZW committed
6

wuhao's avatar
wuhao committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: '登录',
        path: '/user/login',
        component: './User/Login',
      },
      {
        component: './404',
      },
    ],
  },
  ...allauth,
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '/404',
    component: './404',
  },
  {
    path: '/403',
    component: './403',
  },
  {
    component: './404',
  },
];