Recode login page
This commit is contained in:
@@ -6,17 +6,37 @@ import user from '@/router/user'
|
||||
import tools from '@/router/tools'
|
||||
import { getAuthRoute, mapJsonToRoute, setTitle } from '@/util/route'
|
||||
|
||||
const lazySignPage = React.lazy(() => import('@/pages/Sign'))
|
||||
|
||||
const root: RouteJsonObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
absolutePath: '/',
|
||||
component: React.lazy(() => import('@/AuthRoute')),
|
||||
children: [
|
||||
{
|
||||
path: 'register',
|
||||
absolutePath: '/register',
|
||||
id: 'register',
|
||||
component: lazySignPage
|
||||
},
|
||||
{
|
||||
path: 'confirm',
|
||||
absolutePath: '/confirm',
|
||||
id: 'confirm',
|
||||
component: lazySignPage
|
||||
},
|
||||
{
|
||||
path: 'forget',
|
||||
absolutePath: '/forget',
|
||||
id: 'forget',
|
||||
component: lazySignPage
|
||||
},
|
||||
{
|
||||
path: 'login',
|
||||
absolutePath: '/login',
|
||||
id: 'login',
|
||||
component: React.lazy(() => import('@/pages/Login'))
|
||||
component: lazySignPage
|
||||
},
|
||||
{
|
||||
path: 'loading',
|
||||
|
||||
Reference in New Issue
Block a user