diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index 892a4f74..7bc20ebd 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 }) @@ -238,7 +238,7 @@ export default class Run extends Component { file: bodyType === 'file' ? 'single-file' : null, timeout: 8240000, //因浏览器限制,超时时间最多为两分钟 success: (res, header, third) => { - console.log('suc', third); + // console.log('suc', third); this.setState({ resStatusCode: third.res.status, resStatusText: third.res.statusText @@ -404,7 +404,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') { @@ -516,7 +516,7 @@ export default class Run extends Component { }else{ return data; } - return data; + return data; } bindAceEditor = () => { @@ -551,11 +551,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 ffa0b552..b968b229 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,8 +287,6 @@ export default class InterfaceColMenu extends Component { // }); // this.props.interfaceColList.caseList = caseList; // } - - return (
高效、易用、功能强大的 api 管理平台,旨在为开发、产品、测试人员提供更优雅的接口管理服务。
diff --git a/static/doc/mock.html b/static/doc/mock.html index a6aaec53..2e916a48 100644 --- a/static/doc/mock.html +++ b/static/doc/mock.html @@ -139,19 +139,19 @@