We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e568cbf commit a1ff7a8Copy full SHA for a1ff7a8
console/atest-ui/src/views/TestCase.vue
@@ -113,8 +113,10 @@ function RunHistoryTestCase(historyCaseID : string){
113
parameters.value = []
114
requestLoading.value = false
115
UIAPI.ErrorTip(e)
116
- testResult.value.bodyObject = JSON.parse(e.body)
117
- testResult.value.originBodyObject = JSON.parse(e.body)
+ if (e.body !== undefined && e.body !== null){
+ testResult.value.bodyObject = JSON.parse(e.body)
118
+ testResult.value.originBodyObject = JSON.parse(e.body)
119
+ }
120
})
121
}
122
0 commit comments