fix. useResponsiveBreakpoints, getImageHost 수정
This commit is contained in:
@@ -14,12 +14,13 @@ export const BREAKPOINTS = {
|
||||
*/
|
||||
export const useResponsiveBreakpoints = () => {
|
||||
const breakpoints = useBreakpoints(BREAKPOINTS)
|
||||
const isXs = breakpoints.smaller('sm') // < 768px
|
||||
const isSm = breakpoints.smaller('md') // < 1024px
|
||||
const isMd = breakpoints.smaller('lg') // < 1440px
|
||||
const isLg = breakpoints.greater('lg') // >= 1440px
|
||||
const isMobile = isXs || isSm
|
||||
const isDesktop = isLg || isMd
|
||||
const isXs = breakpoints.smaller('sm') // < 768
|
||||
const isSm = breakpoints.between('sm', 'md') // 768 <= x < 1024
|
||||
const isMd = breakpoints.between('md', 'lg') // 1024 <= x < 1440
|
||||
const isLg = breakpoints.greaterOrEqual('lg') // >= 1440
|
||||
|
||||
const isMobile = breakpoints.smaller('md') // < 1024
|
||||
const isDesktop = breakpoints.greaterOrEqual('md') // >= 1024
|
||||
|
||||
return computed(() => ({
|
||||
isXs: isXs.value,
|
||||
|
||||
Reference in New Issue
Block a user