<template>
  <router-view />
</template>

<script setup>
import useSettingsStore from "@/store/modules/settings";
import { handleThemeStyle } from "@/utils/theme";
import autofit from "autofit.js";
onMounted(() => {
  autofit.init(
    {
      designHeight: 1080,
      designWidth: 1920,
      renderDom: "#app",
      resize: true,
    },
    false
  ); // 可关闭控制台运行提示输出
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
  });
});
</script>
