From 73128be543085694548f663ae4245feb9d4ba263 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 9 Oct 2017 15:37:54 +0800 Subject: [PATCH] change default locale to chinese --- src/router.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/router.js b/src/router.js index a31ba0ca..70c08fa7 100644 --- a/src/router.js +++ b/src/router.js @@ -1,5 +1,7 @@ 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 ( - - {getRoutes(navData)} - + + + {getRoutes(navData)} + + ); } -- GitLab