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