diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index c12ee0cb..613dd246 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -311,9 +311,12 @@ export default class acclist extends React.Component{ } tabFn(index){ this.setState({activepage:index,key_word:''}); - if(index==1||index==2){ - this.setState({distdata:[]}); - }else{ + if(index ==1){ + this.setState({activepage:1}); + } + if(index ==2){ + this.setState({activepage:2}); + } if(index==3){ this.setState({activepage:4}); @@ -332,7 +335,7 @@ export default class acclist extends React.Component{ this.getKeyList(); }, 10); - } + } //作废