fix(接口测试): 修复接口测试用例和场景转性能测试时会偶发重复jmx的问题

--bug=1021243 --user=宋天阳 【接口测试】接口用例转性能后,再用场景转性能测试,还是显示的接口用例的内容
https://www.tapd.cn/55049933/s/1319525
This commit is contained in:
song-tianyang 2022-12-26 17:27:13 +08:00 committed by 建国
parent 1fa71457ef
commit f7097fe42e
2 changed files with 3 additions and 1 deletions

View File

@ -78,6 +78,7 @@ export default {
jmxObj.attachFiles = jmxInfo.attachFiles;
jmxObj.attachByteFiles = jmxInfo.attachByteFiles;
jmxObj.scenarioId = row.id;
jmxObj.caseId = null;
jmxObj.version = row.version;
jmxObj.projectEnvMap = projectEnvMap;
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj } });

View File

@ -1433,6 +1433,7 @@ export default {
jmxObj.attachFiles = jmxInfo.attachFiles;
jmxObj.attachByteFiles = jmxInfo.attachByteFiles;
jmxObj.caseId = reqObj.id;
jmxObj.scenarioId = null;
jmxObj.version = row.version;
jmxObj.envId = environment.id;
jmxObj.projectEnvMap = projectEnvMap;
@ -1442,7 +1443,7 @@ export default {
});
}
})
.catch((error) => {
.catch(() => {
this.$emit('runRefresh', {});
});
},