App.vue 890 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div :class="canPointer?'':'stop_pionet'">
  3. <a-config-provider :theme="{
  4. algorithm: theme[themeAlgorithm],
  5. }" :csp="{ nonce: 'YourNonceCode' }" component-shape="round" :locale="zhCN">
  6. <router-view>
  7. </router-view>
  8. </a-config-provider>
  9. </div>
  10. </template>
  11. <script setup>
  12. import {ref,onMounted} from 'vue'
  13. import { useRouter} from "vue-router";
  14. import {ConfigProvider,theme} from 'ant-design-vue';
  15. import zhCN from 'ant-design-vue/es/locale/zh_CN';
  16. import dayjs from 'dayjs';
  17. import 'dayjs/locale/zh-cn';
  18. import { storeToRefs } from 'pinia'
  19. import { useBaseStore } from '@/stores/modules/base'
  20. const base = useBaseStore()
  21. let { themeAlgorithm, canPointer} = storeToRefs(base)
  22. dayjs.locale('zh')
  23. onMounted(()=>{
  24. })
  25. </script>
  26. <style>
  27. #app{
  28. height: 100%;
  29. width: 100%;
  30. }
  31. .stop_pionet{
  32. pointer-events: none;
  33. }
  34. </style>