fix(接口定义): 修复接口定义页面报错的缺陷
This commit is contained in:
parent
3c50781be9
commit
47b6b27edf
|
@ -677,7 +677,7 @@ export default {
|
||||||
}
|
}
|
||||||
item.caseTotal = parseInt(item.caseTotal);
|
item.caseTotal = parseInt(item.caseTotal);
|
||||||
if (item.protocol === 'HTTP') {
|
if (item.protocol === 'HTTP') {
|
||||||
if (!item.response) {
|
if (!item.response || item.response === 'null') {
|
||||||
let response = {headers: [], body: new Body(), statusCode: [], type: "HTTP"};
|
let response = {headers: [], body: new Body(), statusCode: [], type: "HTTP"};
|
||||||
item.response = JSON.stringify(response);
|
item.response = JSON.stringify(response);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue