适配
This commit is contained in:
@@ -21,3 +21,8 @@ export function useMediaQuery(query: string): boolean {
|
||||
export function useIsMobile(): boolean {
|
||||
return useMediaQuery('(max-width: 767px)');
|
||||
}
|
||||
|
||||
/** 平板等窄屏:< 1024px */
|
||||
export function useIsNarrowScreen(): boolean {
|
||||
return useMediaQuery('(max-width: 1023px)');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user