update dayjs

This commit is contained in:
2026-03-23 14:08:38 +08:00
parent 0cc3788bc1
commit b232fad34f
2 changed files with 12 additions and 4 deletions
+11 -4
View File
@@ -1,5 +1,10 @@
<script setup lang="ts">
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 isAuthPage = computed(() =>
@@ -8,8 +13,10 @@ const isAuthPage = computed(() =>
</script>
<template>
<RouterView v-if="isAuthPage" />
<MainLayout v-else>
<RouterView />
</MainLayout>
<a-config-provider :locale="zhCN">
<RouterView v-if="isAuthPage" />
<MainLayout v-else>
<RouterView />
</MainLayout>
</a-config-provider>
</template>