Commit fccba63179e529c9e4b00a412a2fe409c8702f6c

Authored by zhangzzzz
1 parent e92d2dd4

优化日期中文不完全问题;

Showing 1 changed file with 7 additions and 1 deletions
src/routes/indexPage.js
@@ -11,6 +11,9 @@ import ProblemFeedback from './problemFeedback/problemFeedback'; @@ -11,6 +11,9 @@ import ProblemFeedback from './problemFeedback/problemFeedback';
11 import TabCon from './tab/tab'; 11 import TabCon from './tab/tab';
12 import styles from './indexPage.less'; 12 import styles from './indexPage.less';
13 13
  14 +import moment from 'moment';
  15 +import 'moment/locale/zh-cn';
  16 +
14 const { Header, Content } = Layout; 17 const { Header, Content } = Layout;
15 18
16 function IndexPage({ app }) { 19 function IndexPage({ app }) {
@@ -31,7 +34,10 @@ function IndexPage({ app }) { @@ -31,7 +34,10 @@ function IndexPage({ app }) {
31 case 'sBig5': 34 case 'sBig5':
32 return zhTW; 35 return zhTW;
33 default: 36 default:
34 - return zhCN; 37 + {
  38 + moment.locale('zh-cn');
  39 + return zhCN;
  40 + }
35 } 41 }
36 }; 42 };
37 43