Agriculture-front-end/src/App.vue
2023-04-23 09:41:12 +08:00

29 lines
658 B
Vue
Executable File

<template>
<VScaleScreen width="100%" height="100%">
<div class="center">
<Headers />
<router-view />
</div>
</VScaleScreen>
</template>
<script setup>
import useSettingsStore from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import VScaleScreen from 'v-scale-screen';
import Headers from '@/components/heades/index';
onMounted(() => {
nextTick(() => {
// 初始化主题样式
handleThemeStyle(useSettingsStore().theme);
});
});
</script>
<style lang="scss" scoped>
.center {
width: 100%;
height: 100%;
}
</style>