fix:修复了历史记录滑动显示问题与频繁申请后端问题 (#58)

Reviewed-on: PostGuard/Canon#58
Co-authored-by: ichirinko <1621543655@qq.com>
Co-committed-by: ichirinko <1621543655@qq.com>
This commit is contained in:
ichirinko 2024-04-27 13:18:02 +08:00 committed by jackfiled
parent 17dbcccb59
commit 73dba8b1db

View File

@ -44,7 +44,7 @@ export function HistoryPage({state, setState}) {
}
getResponse();
}, [data])
}, [state])
const toggleDrawerClose = () => {
setState(false);
@ -87,7 +87,7 @@ export function HistoryPage({state, setState}) {
{
data.map((item, index) => {
return <Card key={index}
sx={{width: "100%", height: "auto"}}>
sx={{width: "100%", height: "auto",overflow: "visible"}}>
<CardActionArea onClick={() => {
navigate(`/${item.id}`)
}}>