opti: if length is 0 the body form hide in the postman

This commit is contained in:
suxiaoxin 2017-12-18 19:42:42 +08:00
parent 7ceb392910
commit b96b20efbe

View File

@ -486,7 +486,7 @@ export default class Run extends Component {
</div> </div>
} }
key="3" key="3"
className={HTTP_METHOD[method].request_body ? 'POST' : 'hidden'} className={HTTP_METHOD[method].request_body && (req_body_type === 'form' && req_body_form.length > 0 || req_body_type !== 'form') ? 'POST' : 'hidden'}
> >
<div style={{ display: checkRequestBodyIsRaw(method, req_body_type) ? 'block' : 'none' }}> <div style={{ display: checkRequestBodyIsRaw(method, req_body_type) ? 'block' : 'none' }}>