From 4025619d73fe8d5380f76e172881497d947851fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B0=8F=E8=81=AA?= Date: Mon, 4 Mar 2019 01:09:55 +0800 Subject: [PATCH] dead code (#3639) * dead code Close: #3637 * delete dead props --- src/components/SiderMenu/BaseMenu.js | 4 ++-- src/pages/Dashboard/Analysis.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index 6c8c7022..9ab66ec3 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -33,13 +33,13 @@ export default class BaseMenu extends PureComponent { * 获得菜单子节点 * @memberof SiderMenu */ - getNavMenuItems = (menusData, parent) => { + getNavMenuItems = menusData => { if (!menusData) { return []; } return menusData .filter(item => item.name && !item.hideInMenu) - .map(item => this.getSubMenuOrItem(item, parent)) + .map(item => this.getSubMenuOrItem(item)) .filter(item => item); }; diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index cceab9bd..07172cc8 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/src/pages/Dashboard/Analysis.js @@ -39,7 +39,6 @@ class Analysis extends Component { type: 'chart/clear', }); cancelAnimationFrame(this.reqRef); - clearTimeout(this.timeoutId); } handleChangeSalesType = e => { -- GitLab