Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev

This commit is contained in:
suxiaoxin 2017-09-08 11:12:37 +08:00
commit 37258b53f2
2 changed files with 5 additions and 3 deletions

View File

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

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',