From 213b4e0c545c3d8a1c91168e4476f15a0b96a782 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 26 Sep 2022 12:11:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E8=BD=AC?= =?UTF-8?q?=E6=88=90=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E6=97=B6=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=AF=BC=E5=85=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016621 --user=刘瑞斌 【接口测试】github#17739,批量接口自动化转化性能测试会多次重复导入 https://www.tapd.cn/55049933/s/1251897 Closes #17739 --- .../components/performance/test/EditPerformanceTest.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/business/components/performance/test/EditPerformanceTest.vue b/frontend/src/business/components/performance/test/EditPerformanceTest.vue index 2492bd0466..72d3051acf 100644 --- a/frontend/src/business/components/performance/test/EditPerformanceTest.vue +++ b/frontend/src/business/components/performance/test/EditPerformanceTest.vue @@ -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"); }