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