<template>
  <div style="overflow: hidden">
    <ElConfigProvider :locale="locale">
      <router-view/>
    </ElConfigProvider>
  </div>
</template>
<script lang="ts">
import {
  defineComponent,
  ref,
  nextTick,
  onMounted,
  watch,
  computed,
  ComponentInternalInstance,
  getCurrentInstance
} from 'vue'
import {useStore} from 'vuex'
import {ElConfigProvider} from 'element-plus'
import zhLocale from 'element-plus/es/locale/lang/zh-cn'
export default defineComponent({
  name: 'App',
  components: {
    [ElConfigProvider.name]: ElConfigProvider, //添加组件
  },
  setup() {
    const store = useStore()
    const locale = ref(zhLocale)
    const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
    return {
      locale
    }
  }
})
</script>
<style scope lang="scss">
</style>
