mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
fix: testCollection form-reqeust-params inject bug
This commit is contained in:
parent
6e17470e3e
commit
271a5633e8
@ -162,7 +162,12 @@ class InterfaceColContent extends Component {
|
||||
}
|
||||
let body = {};
|
||||
if(HTTP_METHOD[curitem.method].request_body){
|
||||
body = isJson(curitem.req_body_other);
|
||||
if(curitem.req_body_type === 'form'){
|
||||
body = this.arrToObj(curitem.req_body_form);
|
||||
}else {
|
||||
body = isJson(curitem.req_body_other);
|
||||
}
|
||||
|
||||
if(!body || typeof body !== 'object'){
|
||||
body = {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user