mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
8 lines
231 B
TypeScript
8 lines
231 B
TypeScript
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core';
|
|
|
|
export function useIsMobile() {
|
|
const breakpoints = useBreakpoints(breakpointsTailwind);
|
|
const isMobile = breakpoints.smaller('md');
|
|
return { isMobile };
|
|
}
|