moss / src /hooks /useBasicLayout.ts
xianqiu's picture
change the port
61ede3b
raw
history blame
231 Bytes
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
export function useBasicLayout() {
const breakpoints = useBreakpoints(breakpointsTailwind)
const isMobile = breakpoints.smaller('sm')
return { isMobile }
}