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
+1
View File
@@ -21,6 +21,7 @@
"@antv/g2plot": "^2.4.35",
"@tailwindcss/vite": "^4.1.16",
"ant-design-vue": "^4.2.6",
"dayjs": "^1.11.20",
"pinia": "^3.0.3",
"tailwindcss": "^4.1.16",
"vue": "^3.5.22",
+7
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>
<a-config-provider :locale="zhCN">
<RouterView v-if="isAuthPage" />
<MainLayout v-else>
<RouterView />
</MainLayout>
</a-config-provider>
</template>