mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
opti: if length is 0 the body form hide in the postman
This commit is contained in:
parent
7ceb392910
commit
b96b20efbe
@ -486,7 +486,7 @@ export default class Run extends Component {
|
||||
</div>
|
||||
}
|
||||
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' }}>
|
||||
|
Loading…
Reference in New Issue
Block a user