<script setup lang="ts">
import { onMounted } from 'vue';
// import { Demo } from './utils/card/Demo.js';

// const demoMain = () => {
//     Demo.find().start();
// }
// demoMain();

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 scoped></style>
