暂存,修改navigate和添加图片

This commit is contained in:
2024-10-12 12:38:19 +08:00
parent 929aaebf20
commit 3eaa94eb46
29 changed files with 244 additions and 58 deletions

View File

@@ -2,12 +2,14 @@ import { Navigate, Route, Routes } from 'react-router-dom';
import { List } from './edit/List';
import { Main } from './layouts';
import { Login } from './login/Login';
import { Profile } from './edit/Profile';
export const App = () => {
return (
<Routes>
<Route element={<Main />}>
<Route path='/' element={<Navigate to='/user/edit/list' />}></Route>
<Route path='edit/list' element={<List />} />
<Route path='profile' element={<Profile />} />
</Route>
<Route path='login' element={<Login />} />
</Routes>