From 385b31e7bbd68f4c1039973461b5a8364701ea5c Mon Sep 17 00:00:00 2001 From: XyanZhang <1743067175@qq.com> Date: Wed, 14 Jun 2023 14:16:33 +0800 Subject: [PATCH 1/2] fix: clicking on the sidebar collapse button results in a blank screen. --- src/components/Layout/Sider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/Sider.js b/src/components/Layout/Sider.js index 575311d..74c62ef 100644 --- a/src/components/Layout/Sider.js +++ b/src/components/Layout/Sider.js @@ -28,7 +28,7 @@ class Sider extends PureComponent { trigger={null} collapsible collapsed={collapsed} - onBreakpoint={!isMobile && onCollapseChange} + onBreakpoint={!isMobile ? onCollapseChange : (broken) => {}} className={styles.sider} >
From 872ce3a825ea3ee8d9f48b60db61b704b91a5183 Mon Sep 17 00:00:00 2001 From: XyanZhang <1743067175@qq.com> Date: Wed, 14 Jun 2023 14:47:06 +0800 Subject: [PATCH 2/2] fix: can't scroll when the media is mobile --- src/themes/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/themes/index.less b/src/themes/index.less index 2418b17..6afc6e9 100644 --- a/src/themes/index.less +++ b/src/themes/index.less @@ -3,7 +3,7 @@ body { height: 100%; - overflow-y: hidden; + overflow-y: auto; background-color: #f8f8f8; }