汉化antd组件库
This commit is contained in:
@@ -10,6 +10,9 @@ import { getConfigDataAPI } from '@/api/Project';
|
|||||||
import { useWebStore } from './stores';
|
import { useWebStore } from './stores';
|
||||||
import { Web } from './types/app/project';
|
import { Web } from './types/app/project';
|
||||||
|
|
||||||
|
import zhCN from 'antd/locale/zh_CN';
|
||||||
|
import 'dayjs/locale/zh-cn';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
useAuthRedirect();
|
useAuthRedirect();
|
||||||
|
|
||||||
@@ -48,6 +51,7 @@ function App() {
|
|||||||
) : (
|
) : (
|
||||||
// 根据主题切换配置主题
|
// 根据主题切换配置主题
|
||||||
<ConfigProvider
|
<ConfigProvider
|
||||||
|
locale={zhCN}
|
||||||
theme={{
|
theme={{
|
||||||
token: {
|
token: {
|
||||||
colorPrimary: '#727cf5',
|
colorPrimary: '#727cf5',
|
||||||
|
|||||||
Reference in New Issue
Block a user