fix(接口测试): 修复历史断言数据兼容问题

--bug=1011386 --user=赵勇 【接口测试】有个场景调试整个场景报错,关闭场景console也报错 https://www.tapd.cn/55049933/s/1122341
This commit is contained in:
fit2-zhao 2022-03-21 16:53:36 +08:00 committed by xiaomeinvG
parent c93dca07a1
commit 354ab05b55
2 changed files with 2 additions and 3 deletions

View File

@ -697,7 +697,7 @@ public class ElementUtil {
elementList.addAll(groupMap.get(POST).stream().sorted(Comparator.comparing(MsTestElement::getIndex)).collect(Collectors.toList()));
}
if (CollectionUtils.isNotEmpty(groupMap.get(ASSERTIONS))) {
elementList.addAll(groupMap.get(ASSERTIONS).stream().sorted(Comparator.comparing(MsTestElement::getIndex)).collect(Collectors.toList()));
elementList.addAll(groupMap.get(ASSERTIONS));
}
}
return elementList;

View File

@ -18,8 +18,7 @@
:value="item.id">
</el-option>
</el-select>
<el-button size="mini" @click="add" type="primary" v-if="tabType !== 'assertionsRule'"
:disabled="request.disabled">
<el-button size="mini" @click="add" type="primary" v-if="tabType !== 'assertionsRule'">
{{ $t('api_test.request.assertions.add') }}
</el-button>
</p>