fix: no undef var error

This commit is contained in:
jialin
2025-03-19 11:23:29 +08:00
parent 4b5f08ccc2
commit 3a05d74a36
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ export default function useWindowResize() {
width: window.innerWidth,
height: window.innerHeight
});
console.log('size:', window.innerWidth, window.innerHeight);
const [isMobile, setIsMobile] = useState<boolean>(false);
const [isTablet, setIsTablet] = useState<boolean>(false);
const [isDesktop, setIsDesktop] = useState<boolean>(false);