feat: 添加路由拦截器/修复打包侧边栏图标失效问题

This commit is contained in:
landaiqing
2024-07-09 14:05:14 +08:00
parent d5d900c37f
commit 0fb5f89744
35 changed files with 735 additions and 1111 deletions

View File

@@ -1,7 +1,39 @@
/** @format */
import { FunctionComponent } from "react";
import { ProCard } from "@ant-design/pro-components";
import styles from "./index.module.less";
import { Avatar, Button, Card } from "antd";
import setting from "@/assets/icons/setting.svg";
import Search from "antd/es/input/Search";
import Meta from "antd/es/card/Meta";
import { useNavigate } from "react-router-dom";
const MainShare: FunctionComponent = () => {
return <div>22222</div>;
const navigate = useNavigate();
return (
<>
<div className={styles.share_main}>
<ProCard bordered={true} boxShadow={true}>
<div className={styles.share_header}>
<Search placeholder="搜索圈子" style={{ width: 500 }} />
<Button></Button>
</div>
</ProCard>
<ProCard bordered={true} boxShadow={true} style={{ marginTop: 20 }}>
<Card
style={{ width: 250, marginTop: 16 }}
hoverable
onClick={() => {
navigate("/main/share/list/1");
}}>
<Meta
avatar={<Avatar src={setting} />}
title="Card title"
description="This is the description"
/>
</Card>
</ProCard>
</div>
</>
);
};
export default MainShare;