fix react-countup version

This commit is contained in:
zuiidea
2017-03-16 16:59:18 +08:00
parent 4dbbce5de7
commit ac6fdc5fba
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"js-cookie": "^2.1.3",
"qs": "^6.2.0",
"react": "^15.4.1",
"react-countup": "^1.3.0",
"react-countup": "1.3.0",
"react-dom": "^15.4.1",
"recharts": "^0.19.0"
},
+2 -2
View File
@@ -6,7 +6,7 @@ import { menu } from '../../utils'
const topMenus = menu.map(item => item.key)
const getMenus = function (menuArray, siderFold, parentPath = '/') {
return menuArray.map(item => {
const linkTo = parentPath +item.key
const linkTo = parentPath + item.key
if (item.child) {
return (
<Menu.SubMenu key={linkTo} title={<span>{item.icon ? <Icon type={item.icon} /> : ''}{siderFold && topMenus.indexOf(item.key) >= 0 ? '' : item.name}</span>}>
@@ -59,7 +59,7 @@ function Menus ({ siderFold, darkTheme, location, handleClickNavMenu, navOpenKey
mode={siderFold ? 'vertical' : 'inline'}
theme={darkTheme ? 'dark' : 'light'}
onClick={handleClickNavMenu}
defaultSelectedKeys={[location.pathname !== "/" ? location.pathname : '/dashboard']}
defaultSelectedKeys={[location.pathname !== '/' ? location.pathname : '/dashboard']}
>
{menuItems}
</Menu>