fix(接口测试): 修复场景执行单步骤时提示csv不存在的缺陷
--bug=1025964 --user=王孝刚 【接口测试】新建场景-添加csv场景变量-单步骤调试失败引用csv文件失败 https://www.tapd.cn/55049933/s/1368421 --bug=1025973 --user=王孝刚 【接口测试】api-点击测试-调试失败 https://www.tapd.cn/55049933/s/1368420
This commit is contained in:
parent
636a75c21b
commit
4552cc58ac
|
@ -1135,8 +1135,7 @@ export default {
|
|||
setVariables(v, headers) {
|
||||
this.currentScenario.variables = v;
|
||||
this.currentScenario.headers = headers;
|
||||
if (this.path.endsWith("/update")) {
|
||||
// 直接更新场景防止编辑内容丢失
|
||||
if (v && v.length> 0 || headers && headers.length > 0) {
|
||||
this.editScenario();
|
||||
}
|
||||
if (this.$refs.maximizeHeader) {
|
||||
|
|
|
@ -228,6 +228,12 @@ export default {
|
|||
}
|
||||
if (this.currentApi.request) {
|
||||
this.currentApi.request.clazzName = TYPE_TO_C.get(this.currentApi.request.type);
|
||||
if (this.currentApi.request.hashTree) {
|
||||
let hasNull = this.currentApi.request.hashTree.filter(v => !v || v == null);
|
||||
if (hasNull && hasNull.length > 0) {
|
||||
this.currentApi.request.hashTree = [];
|
||||
}
|
||||
}
|
||||
this.sort(this.currentApi.request.hashTree);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue