feat: 添加默认布局
This commit is contained in:
@@ -3,6 +3,7 @@ import type { RouteObject } from 'react-router-dom'
|
||||
import NoFound from '@/views/404/404'
|
||||
import Login from '@/views/User/Login'
|
||||
import Register from '@/views/User/Register'
|
||||
import home from '@/views/Home/'
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
@@ -16,6 +17,10 @@ const routes: RouteObject[] = [
|
||||
path: '/register',
|
||||
Component: Register,
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
Component: home,
|
||||
},
|
||||
]
|
||||
|
||||
export default routes
|
||||
|
Reference in New Issue
Block a user