init
This commit is contained in:
22
src/router/index.ts
Normal file
22
src/router/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type {RouteObject} from 'react-router-dom'
|
||||
|
||||
import About from '@/views/about/About'
|
||||
import Home from '@/views/home/Home'
|
||||
import NoFound from '@/views/404/404'
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
Component: Home,
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
Component: About,
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
Component: NoFound,
|
||||
},
|
||||
]
|
||||
|
||||
export default routes
|
Reference in New Issue
Block a user