diff --git a/src/App.vue b/src/App.vue index 85ff42d..46b2fec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,18 +37,24 @@ const setFontSize = () => { // } // }, +// }) +// onMounted(() => { +// window.addEventListener('resize', function () { +// isMobile.value = isMobileFn(); +// if (isMobile.value) { +// window.location.reload() +// } +// }) +// }) +// watch(isMobile, (newValue) => { +// window.location.reload() // }) onMounted(() => { window.addEventListener('resize', function () { - isMobile.value = isMobileFn(); - if (isMobile.value) { - window.location.reload() - } + var font = document.documentElement.clientWidth / 375; + document.documentElement.style.fontSize = font + "px"; }) }) -watch(isMobile, (newValue) => { - window.location.reload() -}) @@ -926,11 +932,11 @@ const showMounth = (date: any) => { .header .el-input__wrapper { margin-top: 0; margin-left: 0; - padding-left: 50rem; + padding-left: 50px; width: 61vw; - height: 30rem; - border-radius: 25rem; - font-size: 16rem; + height: 30px; + border-radius: 25px; + font-size: 16px; border: none; outline: none; @@ -938,14 +944,14 @@ const showMounth = (date: any) => { .el-input__inner { - margin: -35rem; + margin: -35px; padding: 0; } .imgSearch123 { - width: 15rem; - height: 15rem; - transform: translateX(-7rem); + width: 15px; + height: 15px; + transform: translateX(-7px); } } diff --git a/src/views/login/modelComponents/Drawer.vue b/src/views/login/modelComponents/Drawer.vue index def9da0..18ebc8d 100644 --- a/src/views/login/modelComponents/Drawer.vue +++ b/src/views/login/modelComponents/Drawer.vue @@ -112,14 +112,14 @@ const handleLang3 = () => {