update dayjs
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user