mirror of https://github.com/fantasticit/think.git
fix: collapsed when window width less than 765
parent
d84603c54f
commit
733282d84b
|
@ -40,7 +40,9 @@ export const useDragableWidth = () => {
|
|||
|
||||
useEffect(() => {
|
||||
if (!windowSize.width) return;
|
||||
toggleCollapsed(windowSize.width <= 765);
|
||||
if (windowSize.width <= 765) {
|
||||
toggleCollapsed(true);
|
||||
}
|
||||
}, [windowSize.width]);
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue