<script setup lang="ts">
import { onMounted } from 'vue';

const setFontSize = () => {
    // 字体大小动态调整
    const width = document.body.clientWidth;
    const fontSize = width / 137;
    const html = document.getElementsByTagName('html')[0];
    html.style.fontSize = fontSize + 'px';
};
onMounted(() => {
    setFontSize();
    window.onresize = () => {
        setFontSize();
    };
});
</script>

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

<style>
@import './assets/css/main.scss';
</style>
<style scoped></style>
