update dayjs
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
"@antv/g2plot": "^2.4.35",
|
"@antv/g2plot": "^2.4.35",
|
||||||
"@tailwindcss/vite": "^4.1.16",
|
"@tailwindcss/vite": "^4.1.16",
|
||||||
"ant-design-vue": "^4.2.6",
|
"ant-design-vue": "^4.2.6",
|
||||||
|
"dayjs": "^1.11.20",
|
||||||
"pinia": "^3.0.3",
|
"pinia": "^3.0.3",
|
||||||
"tailwindcss": "^4.1.16",
|
"tailwindcss": "^4.1.16",
|
||||||
"vue": "^3.5.22",
|
"vue": "^3.5.22",
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import MainLayout from '@/components/layouts/MainLayout.vue'
|
import MainLayout from '@/components/layouts/MainLayout.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 route = useRoute()
|
const route = useRoute()
|
||||||
const isAuthPage = computed(() =>
|
const isAuthPage = computed(() =>
|
||||||
@@ -8,8 +13,10 @@ const isAuthPage = computed(() =>
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<a-config-provider :locale="zhCN">
|
||||||
<RouterView v-if="isAuthPage" />
|
<RouterView v-if="isAuthPage" />
|
||||||
<MainLayout v-else>
|
<MainLayout v-else>
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
|
</a-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user