mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-12 12:54:48 +08:00
fix: postman bug
This commit is contained in:
parent
c0231e379d
commit
a1da30fd6e
@ -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;
|
||||
}
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user