fix(性能测试): 修复场景批量转成性能测试时重复导入的问题

--bug=1016621 --user=刘瑞斌 【接口测试】github#17739,批量接口自动化转化性能测试会多次重复导入 https://www.tapd.cn/55049933/s/1251897

Closes #17739
This commit is contained in:
CaptainB 2022-09-26 12:11:30 +08:00 committed by f2c-ci-robot[bot]
parent 6607266aaa
commit 213b4e0c54
1 changed files with 1 additions and 4 deletions

View File

@ -260,16 +260,12 @@ export default {
scenarioJmxs.jmxs.forEach(item => {
if (item.scenarioId) {
this.$refs.basicConfig.importScenario(item.scenarioId);
this.$refs.basicConfig.handleUpload();
relateApiList.push({
apiId: item.scenarioId,
apiVersion: item.version,
type: 'SCENARIO'
});
}
if (item.caseId) {
this.$refs.basicConfig.importCase(item);
}
if (JSON.stringify(item.attachFiles) !== "{}") {
let attachFiles = [];
for (let fileID in item.attachFiles) {
@ -278,6 +274,7 @@ export default {
}
this.$set(this.test, "apiList", relateApiList);
});
this.$refs.basicConfig.handleUpload();
this.active = '1';
this.$store.commit("clearScenarioJmxs");
}