<template>
  <el-config-provider :locale="zhCn">
    <router-view/>
  </el-config-provider>
</template>

<script lang="ts" setup>
import {onMounted} from 'vue'
import {ElConfigProvider} from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import {useUserStore} from '@/stores/user'

const userStore = useUserStore()

onMounted(() => {
  // 初始化用户信息
  userStore.getUserInfo()
})
</script>

<style>
#app {
  min-height: 100vh;
  background: transparent;
}
</style>
