fix: postman bug

This commit is contained in:
zwjamnsss 2017-09-08 10:42:16 +08:00
parent c0231e379d
commit a1da30fd6e
2 changed files with 5 additions and 2 deletions

View File

@ -474,7 +474,7 @@ export default class Run extends Component {
const { method, domains, pathParam, pathname, query, headers, bodyForm, caseEnv, bodyType, resHeader, loading, validRes } = this.state;
const hasPlugin = this.state.hasPlugin;
let isResJson = false;
Object.keys(resHeader).map(key => {
resHeader && Object.keys(resHeader).map(key => {
if (/content-type/i.test(key) && /application\/json/i.test(resHeader[key])) {
isResJson = true;
}

View File

@ -74,7 +74,10 @@ export default class InterfaceColContent extends Component {
const columns = [{
title: '用例名称',
dataIndex: 'casename',
key: 'casename'
key: 'casename',
render: (text, item)=>{
return <Link to={"/project/" + item.project_id + "/interface/case/" + item._id} >{text}</Link>
}
}, {
title: '接口路径',
dataIndex: 'path',