Commit 73128be5 authored by afc163's avatar afc163

change default locale to chinese

parent 707be3c4
import React from 'react';
import { Router, Route, Redirect } from 'dva/router';
import { LocaleProvider } from 'antd';
import zhCN from 'antd/lib/locale-provider/zh_CN';
import navData from './common/nav';
function getRoutes(data, level = 0) {
......@@ -38,9 +40,11 @@ function getRoutes(data, level = 0) {
function RouterConfig({ history }) {
return (
<Router history={history}>
{getRoutes(navData)}
</Router>
<LocaleProvider locale={zhCN}>
<Router history={history}>
{getRoutes(navData)}
</Router>
</LocaleProvider>
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment