feat: 添加container列表
This commit is contained in:
23
src/App.tsx
23
src/App.tsx
@@ -1,5 +1,24 @@
|
||||
const a = 1
|
||||
import { BrowserRouter as Router, Route, Routes, Navigate } from 'react-router-dom';
|
||||
import { ConfigProvider } from 'antd';
|
||||
import { App as ContainerApp } from './pages/container';
|
||||
|
||||
export const App = () => {
|
||||
return <div className="bg-slate-200 w-20 h-10 border">App</div>;
|
||||
return (
|
||||
<div className='w-full h-full'>
|
||||
<ConfigProvider
|
||||
theme={{
|
||||
token: {},
|
||||
}}>
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path='/' element={<Navigate to='/container/' />} />
|
||||
<Route path='/container/*' element={<ContainerApp />} />
|
||||
<Route path='/404' element={<div>404</div>} />
|
||||
<Route path='*' element={<div>404</div>} />
|
||||
</Routes>
|
||||
</Router>
|
||||
</ConfigProvider>
|
||||
<div id='for-modal'></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user