<template>
  <el-config-provider :locale="zhCn">
    <RouterView v-if="isRouterActive"></RouterView>
  </el-config-provider>
</template>

<script setup lang="ts">
// 引入组件刷新功能
import { provide , nextTick , ref } from 'vue'
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn' //引入ElemenetPlus中文
const isRouterActive = ref(true)
provide('reload', () => {
  isRouterActive.value = false
  nextTick(() => {
    isRouterActive.value = true
  })
})

</script>


<style scoped>
html{
  padding:0;
  margin: 0;
}
body{
  padding: 0;
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
</style>
