From 4b7e3a550334f757ea3b04e400c4b3fef7fc2ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Wed, 5 Jan 2022 15:19:58 +0800 Subject: [PATCH] Update list.js --- src/pages/plan/key/list.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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); - } + } //作废