Recode login page

This commit is contained in:
2023-12-21 18:36:31 +08:00
parent 1b78cd4163
commit 85aba29ced
7 changed files with 540 additions and 6 deletions

View File

@@ -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',