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..e53f69fb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,6 +36,14 @@ const { initializeThemeSwitcher } = useAutoThemeSwitcher(appStore) onMounted(() => { initializeThemeSwitcher() }) + +const appSrapperTop = ref('0px') +const appSrapperHeight = ref('calc( 100% - 0px )') +const router = useRouter() +router.beforeEach((to) => { + to.meta.title !== undefined ? appSrapperTop.value = '46px' : appSrapperTop.value = '0px' + to.meta.title !== undefined ? appSrapperHeight.value = 'calc( 100% - 46px )' : appSrapperHeight.value = 'calc( 100% - 0px )' +})