This commit is contained in:
landaiqing
2024-04-12 20:14:27 +08:00
commit 18d15ddd17
28 changed files with 4136 additions and 0 deletions

22
src/router/index.ts Normal file
View 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