fix: add basename

This commit is contained in:
2025-02-17 00:31:42 +08:00
parent f00c6cc030
commit 0dce78e12f
12 changed files with 37 additions and 18 deletions

View File

@@ -1,14 +1,15 @@
import { Navigate, Route, Routes } from 'react-router-dom';
import { 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';
import { Redirect } from '@/modules/Redirect';
export const App = () => {
return (
<Routes>
<Route element={<Main />}>
<Route path='/' element={<Navigate to='/user/edit/list' />}></Route>
<Route path='/' element={<Redirect to='/user/edit/list' />}></Route>
<Route path='edit/list' element={<List />} />
<Route path='profile' element={<Profile />} />
</Route>