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:
parent
17dbcccb59
commit
73dba8b1db
|
@ -44,7 +44,7 @@ export function HistoryPage({state, setState}) {
|
||||||
}
|
}
|
||||||
getResponse();
|
getResponse();
|
||||||
|
|
||||||
}, [data])
|
}, [state])
|
||||||
|
|
||||||
const toggleDrawerClose = () => {
|
const toggleDrawerClose = () => {
|
||||||
setState(false);
|
setState(false);
|
||||||
|
@ -87,7 +87,7 @@ export function HistoryPage({state, setState}) {
|
||||||
{
|
{
|
||||||
data.map((item, index) => {
|
data.map((item, index) => {
|
||||||
return <Card key={index}
|
return <Card key={index}
|
||||||
sx={{width: "100%", height: "auto"}}>
|
sx={{width: "100%", height: "auto",overflow: "visible"}}>
|
||||||
<CardActionArea onClick={() => {
|
<CardActionArea onClick={() => {
|
||||||
navigate(`/${item.id}`)
|
navigate(`/${item.id}`)
|
||||||
}}>
|
}}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user