<template>
  <div style="overflow: hidden; width: 100%; height: 100%">
    <el-config-provider :locale="zhCn">
      <router-view :key="$route.name" />
    </el-config-provider>
  </div>
</template>

<script setup lang="ts">
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { useRoute } from 'vue-router'
document.documentElement.style.setProperty(
  '--czr-quasar-color',
  'var(--czr-main-color)',
)
const route = useRoute()
if (route.query.vconsole == 1) {
  import('vconsole').then((module) => {
    new module.default()
  })
}
// const baseSize = 16 // 基础大小，16px
// const scale = document.documentElement.clientWidth / 1920 // 设计稿宽度
//
// document.documentElement.style.setProperty(
//   '--czr-input-size',
//   (baseSize / scale) * 0.5 + 'px',
// )
</script>

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