|
@@ -71,7 +71,7 @@ class App extends Component {
|
71
|
71
|
* 优先级:传入的props > url
|
72
|
72
|
*/
|
73
|
73
|
loadLocales() {
|
74
|
|
- let { currentLocale } = this.props;
|
|
74
|
+ let { locales: currentLocale } = this.props;
|
75
|
75
|
if (!currentLocale) {
|
76
|
76
|
currentLocale = intl.determineLocale({
|
77
|
77
|
urlLocaleKey: "lang"
|
|
@@ -491,7 +491,7 @@ App.propTypes = {
|
491
|
491
|
pageType: PropTypes.string,
|
492
|
492
|
page: PropTypes.number,
|
493
|
493
|
onPageChange: PropTypes.func,
|
494
|
|
- currentLocale: PropTypes.string
|
|
494
|
+ locales: PropTypes.string
|
495
|
495
|
};
|
496
|
496
|
|
497
|
497
|
App.defaultProps = {
|