fix: add basename
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { Main } from './layouts';
|
||||
import { List } from './edit/List';
|
||||
import { AppVersionList } from './edit/AppVersionList';
|
||||
import { Redirect } from '@/modules/Redirect';
|
||||
export const App = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route element={<Main />}>
|
||||
<Route path='/' element={<Navigate to='/app/edit/list' />}></Route>
|
||||
<Route path='/' element={<Redirect to='/app/edit/list' />}></Route>
|
||||
<Route path='edit/list' element={<List />} />
|
||||
<Route path='/:appKey/version/list' element={<AppVersionList />} />
|
||||
</Route>
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ContainerList } from './edit/List';
|
||||
import { Main } from './layouts';
|
||||
import { Preview, PreviewWrapper } from './preview';
|
||||
import { Redirect } from '@/modules/Redirect';
|
||||
export const App = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route element={<Main />}>
|
||||
<Route path='/' element={<Navigate to='/container/edit/list' />}></Route>
|
||||
<Route path='/' element={<Redirect to='/container/edit/list' />}></Route>
|
||||
<Route path='edit/list' element={<ContainerList />} />
|
||||
<Route path='preview/:id/wrapper' element={<PreviewWrapper />} />
|
||||
</Route>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { Main } from './layouts';
|
||||
import { List } from './edit/List';
|
||||
import { Redirect } from '@/modules/Redirect';
|
||||
export const App = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route element={<Main />}>
|
||||
<Route path='/' element={<Navigate to='/file/edit/list' />}></Route>
|
||||
<Route path='/' element={<Redirect to='/file/edit/list' />}></Route>
|
||||
<Route path='edit/list' element={<List />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
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 { UserList } from './edit/UserList';
|
||||
import { Redirect } from '@/modules/Redirect';
|
||||
|
||||
export const App = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route element={<Main />}>
|
||||
<Route path='/' element={<Navigate to='/org/edit/list' />}></Route>
|
||||
<Route path='/' element={<Redirect to='/org/edit/list' />}></Route>
|
||||
<Route path='edit/list' element={<List />} />
|
||||
<Route path='edit/user/:id' element={<UserList />} />
|
||||
</Route>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user