From b96b20efbeee7792b5cbbbd8d9223af6a49d365c Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Mon, 18 Dec 2017 19:42:42 +0800 Subject: [PATCH] opti: if length is 0 the body form hide in the postman --- client/components/Postman/Postman.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index d07bcf4f..0908e4e4 100755 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -486,7 +486,7 @@ export default class Run extends Component { } 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'} >