mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
fix: 选择 raw 提示 json-schema 格式问题
This commit is contained in:
parent
2dab5ef2a7
commit
d17bafb519
@ -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 格式有误');
|
||||
|
Loading…
Reference in New Issue
Block a user