Files
certd/packages/ui/certd-client/src/vben/composables/use-is-mobile.ts
T
GitHub Actions Bot 335d175d57 🔱: [client] sync upgrade with 7 commits [trident-sync]
chore:
Merge branch 'vben'

# Conflicts:
#	package.json
perf: antdv示例改成使用vben框架
chore: vben
chore: vben
chore: vben
2025-03-03 19:24:51 +00:00

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 };
}