fix(接口测试): schema 修复

--bug=1047484 --user=白奇 在Schema格式下,修改默认的响应内容,在Json中自动生成失败 https://www.tapd.cn/55049933/s/1594452
This commit is contained in:
baiqi 2024-10-21 11:13:31 +08:00 committed by Craftsman
parent 8f7da36c0c
commit 1c4c0a3245
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@
try {
bodyLoading.value = true;
let schema = activeResponse.value.body.jsonBody.jsonSchema;
if (!schema && activeResponse.value.body.jsonBody.jsonSchemaTableData) {
if (activeResponse.value.body.jsonBody.jsonSchemaTableData) {
// jsonSchema json schema
schema = parseTableDataToJsonSchema(activeResponse.value.body.jsonBody.jsonSchemaTableData[0]);
}