fix(antdv): 修改antdv的默认语言为中文
This commit is contained in:
parent
ddd4368977
commit
98cc3f91c9
@ -1,4 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
||||||
import { useAgentStore } from '@/stores/agent'
|
import { useAgentStore } from '@/stores/agent'
|
||||||
import { useUserStore } from '@/stores/user'
|
import { useUserStore } from '@/stores/user'
|
||||||
import { useThemeStore } from '@/stores/theme'
|
import { useThemeStore } from '@/stores/theme'
|
||||||
@ -17,6 +18,7 @@ onMounted(async () => {
|
|||||||
<template>
|
<template>
|
||||||
<a-config-provider
|
<a-config-provider
|
||||||
:theme="themeStore.currentTheme"
|
:theme="themeStore.currentTheme"
|
||||||
|
:locale="zhCN"
|
||||||
>
|
>
|
||||||
<router-view />
|
<router-view />
|
||||||
</a-config-provider>
|
</a-config-provider>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user