From 5abbe3d32134d65dc39cf2f48ca2339d51cdcc82 Mon Sep 17 00:00:00 2001 From: ljt990218 <2511590093@qq.com> Date: Sat, 23 Mar 2024 20:59:31 +0800 Subject: [PATCH 1/6] fix: Screen adaptation --- index.html | 58 ++++++++++++++++++++++++++------------------- src/App.vue | 12 +++++++--- src/pages/index.vue | 2 ++ src/styles/app.less | 2 +- 4 files changed, 46 insertions(+), 28 deletions(-) diff --git a/index.html b/index.html index 463b3c79..79d68bec 100644 --- a/index.html +++ b/index.html @@ -1,26 +1,36 @@ - - - - - - - - - -
- - - - + + + + + + + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 7524d538..b8c7805c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,6 +36,13 @@ const { initializeThemeSwitcher } = useAutoThemeSwitcher(appStore) onMounted(() => { initializeThemeSwitcher() }) + +let appSrapperTop = ref('0px') +const router = useRouter() +router.beforeEach(to => { + to.meta.title != undefined ? appSrapperTop.value = '46px' : appSrapperTop.value = '0px' +}) +