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:
wxg0103 2023-05-04 17:00:02 +08:00 committed by fit2-zhao
parent 636a75c21b
commit 4552cc58ac
2 changed files with 7 additions and 2 deletions

View File

@ -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) {

View File

@ -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);
}
},