You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hippo4j/threadpool/console-new/src/App.tsx

30 lines
787 B

import { Layout } from 'antd';
import { Routes, Route, Link } from 'react-router-dom';
import Home from './page/home';
import About from './page/about';
import style from './index.module.less';
const { Header, Sider, Content } = Layout;
function App() {
return (
<div className={style.container}>
<Header className={style.header}>header</Header>
<Layout>
<Sider className={style.sider}>
<Link to="/home">home</Link>
<Link to="/about">about</Link>
</Sider>
<Content className={style.content}>
<Routes>
<Route path="/home" Component={Home}></Route>
<Route path="/about" Component={About}></Route>
</Routes>
</Content>
</Layout>
</div>
);
}
export default App;