From 8185eedb2daf1694cf29d07c1933ee5b7a91cc7b Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Fri, 20 Oct 2017 18:06:38 +0800 Subject: [PATCH] =?UTF-8?q?opti:=20=E6=B8=85=E7=90=86console=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Postman/Postman.js | 20 +++++++++---------- .../InterfaceCol/InterfaceColMenu.js | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index 104e5156..ea95466d 100755 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -222,9 +222,9 @@ export default class Run extends Component { if(resBody === false){ resBody = bodyOther; }else{ - reqBody = this.handleJson(resBody) + reqBody = this.handleJson(resBody) } - + } this.setState({ loading: true }) @@ -237,7 +237,7 @@ export default class Run extends Component { files: bodyType === 'form' ? this.getFiles(bodyForm) : {}, file: bodyType === 'file' ? 'single-file' : null, success: (res, header, third) => { - console.log('suc', third); + // console.log('suc', third); this.setState({ resStatusCode: third.res.status, resStatusText: third.res.statusText @@ -402,7 +402,7 @@ export default class Run extends Component { bodyForm[index].enable = true; if (bodyForm[index].type === 'file') { bodyForm[index].value = 'file_' + index - } else { + } else { bodyForm[index].value = v } } else if (key === 'enable') { @@ -514,7 +514,7 @@ export default class Run extends Component { }else{ return data; } - return data; + return data; } bindAceEditor = () => { @@ -549,11 +549,11 @@ export default class Run extends Component { }, 0); } - @autobind - fileChange(e, index) { - console.log(e) - console.log(index) - } + // @autobind + // fileChange(e, index) { + // console.log(e) + // console.log(index) + // } @autobind onTestSwitched(checked) { diff --git a/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js b/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js index 04218b97..081f2c61 100755 --- a/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js +++ b/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js @@ -180,7 +180,7 @@ export default class InterfaceColMenu extends Component { if (!res.data.errcode) { message.success('删除用例成功'); - // 如果删除当前选中 case,切换路由到集合 + // 如果删除当前选中 case,切换路由到集合 if (+caseId === +that.props.currCaseId) { that.props.history.push('/project/' + params.id + '/interface/col/') } else { @@ -287,9 +287,9 @@ export default class InterfaceColMenu extends Component { // }); // this.props.interfaceColList.caseList = caseList; // } - + // console.log(this.props.match); - console.log(currColId) + // console.log(currColId) // currColId = this.props.match.params.id?this.props.match.params.id:currColId; return (