diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index e59bc992..6f578b04 100644 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -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])) { diff --git a/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js b/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js index 02cb5a3a..6f37c705 100644 --- a/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js +++ b/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js @@ -74,7 +74,10 @@ export default class InterfaceColContent extends Component { const columns = [{ title: '用例名称', dataIndex: 'casename', - key: 'casename' + key: 'casename', + render: (text, item)=>{ + return {text} + } }, { title: '接口路径', dataIndex: 'path',