fix: 选择 raw 提示 json-schema 格式问题

This commit is contained in:
suxiaoxin 2018-04-04 11:07:59 +08:00
parent 2dab5ef2a7
commit d17bafb519

View File

@ -300,7 +300,7 @@ class InterfaceEditForm extends Component {
values.req_body_form = [];
}
if (values.req_body_is_json_schema && values.req_body_other) {
if (values.req_body_is_json_schema && values.req_body_other&& values.req_body_type==='json') {
values.req_body_other = checkIsJsonSchema(values.req_body_other);
if (!values.req_body_other) {
return message.error('请求参数 json-schema 格式有误');