<script setup lang="ts">
import { ConfigProvider } from 'ant-design-vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
import { Spin } from 'ant-design-vue'
import { useAppStore } from './store/modules/app'

import { ElConfigProvider } from 'element-plus'
import zhcn from 'element-plus/es/locale/lang/zh-cn'

const appStore = useAppStore()
dayjs.locale('zh-cn')

</script>

<template>
  <ConfigProvider :locale="zhCN">
    <ElConfigProvider :locale="zhcn">
      <Spin :spinning="appStore.loading" tip="加载中...">
        <router-view />
      </Spin>
    </ElConfigProvider>
  </ConfigProvider>
</template>

<style lang="less" scoped>
</style>
