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

<script lang="ts" setup>
import { onMounted } from 'vue'
import { getStorage, storageKey } from '../../static/utils/storage'

onMounted(() => {
    let userInfo = getStorage(storageKey.userInfo);
    if (!userInfo) {
        location.href = '/'
    }
})
</script>


<style lang="less">
body {
    overflow: hidden;
    background-color: #F5F5F5;
}
</style>