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

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

import { useUser } from './services/user';
import { changeTheme, registerTheme } from './services/echarts';

const { getUser } = useUser();

onBeforeMount(() => {
  getUser();
  setTimeout(() => {
    registerTheme();
    changeTheme('le-dark');
  }, 0);
});
</script>
<style lang="postcss" scoped></style>
