fix: 登录页h5和pc响应问题 @AutumnSail

This commit is contained in:
2025-02-26 21:27:21 +08:00
parent fbec732107
commit 15ae164eef

View File

@@ -10,7 +10,7 @@ import { useWindowSize } from '@vueuse/core'
*/
export function useDevice() {
const { width } = useWindowSize()
const isDesktop = computed(() => width.value > 768)
const isDesktop = computed(() => width.value > 571)
const isMobile = computed(() => !isDesktop.value)
return { isMobile, isDesktop }