From 3b8fda63d9a98878a160a5962776e202b10b7870 Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Fri, 29 Sep 2017 14:51:28 +0800 Subject: [PATCH 1/4] opti: delete console.log --- .../Interface/InterfaceCol/InterfaceColMenu.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js b/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js index 291201f5..967fc0a3 100755 --- a/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js +++ b/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js @@ -197,6 +197,7 @@ export default class InterfaceColMenu extends Component { } selectInterface = (importInterIds) => { + // console.log(importInterIds) this.setState({ importInterIds }) } @@ -204,20 +205,9 @@ export default class InterfaceColMenu extends Component { const projectId = this.props.match.params.id; await this.props.fetchInterfaceList(projectId) this.setState({ importInterVisible: true, importColId: colId }) - // confirm({ - // title: '导入接口到集合', - // content: , - // onOk() { - // console.log(colId) - // console.log(this.state.importInterIds); - // }, - // onCancel() { - // console.log('Cancel'); - // }, - // width: 800 - // }); } handleImportOk = () => { + this.setState({ importInterVisible: false }) } handleImportCancel = () => { From 1e64a2678814eb4438ff75904f430fc06b6932a8 Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Fri, 29 Sep 2017 15:22:39 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B6=B2=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E6=97=B6=E7=9A=84=E9=81=AE=E7=BD=A9=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/Application.js | 7 ++----- client/containers/Group/GroupList/GroupList.js | 7 ++++--- client/reducer/modules/user.js | 9 ++++++--- server/controllers/user.js | 6 +++--- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/client/Application.js b/client/Application.js index 1a50d50d..ba149163 100755 --- a/client/Application.js +++ b/client/Application.js @@ -17,8 +17,7 @@ const LOADING_STATUS = 0; @connect( state => { return { - loginState: state.user.loginState, - study: state.user.study + loginState: state.user.loginState }; }, { @@ -35,8 +34,7 @@ export default class App extends Component { static propTypes = { checkLoginState: PropTypes.func, - loginState: PropTypes.number, - study: PropTypes.bool + loginState: PropTypes.number }; @@ -73,7 +71,6 @@ export default class App extends Component {