123456789101112131415161718192021222324252627282930313233343536 |
- <template>
- <a-config-provider :locale="locale">
- <a-style-provider hash-priority="high">
- <router-view />
- </a-style-provider>
- </a-config-provider>
- </template>
- <script setup>
- import { RouterView } from 'vue-router';
- import { onBeforeMount, ref } from 'vue';
- import zhCN from 'ant-design-vue/es/locale/zh_CN';
- import dayjs from 'dayjs';
- import 'dayjs/locale/zh-cn';
- dayjs.locale('zh-cn');
- const locale = ref(zhCN)
- onBeforeMount(() => {
- document.title = window?.AppGlobalConfig?.system?.name || '';
- console.log(useRouter().currentRoute.value.redirectedFrom);
- })
- </script>
- <style lang="scss" scoped>
- ::v-deep(div.ant-popconfirm) {
- min-width: 200px;
- }
- </style>
|