opti: 清理console日志

This commit is contained in:
wenbo.dong 2017-10-20 18:06:38 +08:00
parent 43b8e846aa
commit 8185eedb2d
2 changed files with 13 additions and 13 deletions

View File

@ -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) {

View File

@ -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 (
<div>