20 lines
668 B
TypeScript
20 lines
668 B
TypeScript
import { Navigate, Route, Routes } from 'react-router-dom';
|
|
import { List } from './edit/List';
|
|
import { Main } from './layouts';
|
|
import { Login } from './login/Login';
|
|
import { Login as WxLogin } from './wx/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 />} />
|
|
<Route path='wx/login' element={<WxLogin />} />
|
|
</Routes>
|
|
);
|
|
};
|