<template>
  <div :class="canPointer?'':'stop_pionet'">
    <a-config-provider  :theme="{
      algorithm: theme[themeAlgorithm],
    }" :csp="{ nonce: 'YourNonceCode' }" component-shape="round" :locale="zhCN">
      <router-view>
      </router-view>
    </a-config-provider>
  </div>
</template>
<script setup>
  import {ref,onMounted} from 'vue'
  import { useRouter} from "vue-router";
  import {ConfigProvider,theme} from 'ant-design-vue';
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
  import dayjs from 'dayjs';
  import 'dayjs/locale/zh-cn';
  import { storeToRefs } from 'pinia'
  import { useBaseStore } from '@/stores/modules/base'
  const base = useBaseStore()
  let { themeAlgorithm, canPointer} = storeToRefs(base)
  dayjs.locale('zh')
  onMounted(()=>{

  })
</script>

<style>
#app{
  height: 100%;
  width: 100%;
}
.stop_pionet{
  pointer-events: none;
}

</style>
