fix(接口定义): 修复接口定义页面报错的缺陷

This commit is contained in:
wxg0103 2022-07-21 16:11:16 +08:00 committed by xiaomeinvG
parent 2069190fca
commit dc8a848c4b
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ export default {
}
item.caseTotal = parseInt(item.caseTotal);
if (item.protocol === 'HTTP') {
if (!item.response) {
if (!item.response || item.response === 'null') {
let response = {headers: [], body: new Body(), statusCode: [], type: "HTTP"};
item.response = JSON.stringify(response);
}