This commit is contained in:
liangjian
2026-01-27 16:32:15 +08:00
commit 836c61ac55
303 changed files with 34442 additions and 0 deletions

28
src/App.vue Normal file
View File

@@ -0,0 +1,28 @@
<template>
<vab-app v-show="show" />
</template>
<script setup>
import { useSettingsStore } from '/@/store/modules/settings'
defineOptions({
name: 'App',
})
const settingsStore = useSettingsStore()
const { updateTheme } = settingsStore
const show = ref(false)
const resizeContainer = () => {
let vh = window.innerHeight * 0.01
const el = ref(null)
useCssVar('--vh', el).value = `${vh}px`
}
onBeforeMount(() => {
updateTheme()
window.addEventListener('orientationchange', resizeContainer)
window.addEventListener('resize', resizeContainer)
resizeContainer()
})
</script>