mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
opti: 清理console日志
This commit is contained in:
parent
43b8e846aa
commit
8185eedb2d
@ -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) {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user