Skip to content

Commit

Permalink
fix: collapse detect
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Jul 4, 2024
1 parent be67a73 commit 517d002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ const Options = () => {

useEffect(() => {
// 小屏幕主动收起侧边栏
if (!responsive.lg && getNavCollapse()) {
setNavCollapse(false);
if (!responsive.lg && !getNavCollapse()) {
setNavCollapse(true);
}
}, [responsive.lg]);

Expand Down

0 comments on commit 517d002

Please sign in to comment.