<script setup lang="ts">
  import { ElConfigProvider } from 'element-plus';
  import zhCn from 'element-plus/es/locale/lang/zh-cn';
  import { useDark } from '@vueuse/core';
  import { useRouter } from 'vue-router';
  import { onMounted } from 'vue';

  const router = useRouter();
  onMounted(() => {
    console.log('routes::::', router.options.routes);
  });

  useDark();
</script>

<template>
  <ElConfigProvider :locale="zhCn">
    <RouterView />
  </ElConfigProvider>
</template>
