From 5c3f79d6ed381ebb56b61b67d5fac6aaaa95dde2 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 2 Apr 2021 15:26:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E6=89=A7=E8=A1=8C=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=94=A8=E4=BE=8B=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/api/TestPlanApiCaseList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue index 3ad46ae991..54e37fdb9a 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue @@ -509,13 +509,14 @@ export default { }, batchRun(runData, reportId) { let testPlan = new TestPlan(); + let projectId = this.$store.state.projectId; let threadGroup = new ThreadGroup(); threadGroup.hashTree = []; testPlan.hashTree = [threadGroup]; runData.forEach(item => { threadGroup.hashTree.push(item); }); - let reqObj = {id: reportId, testElement: testPlan, type: 'API_PLAN', reportId: "run"}; + let reqObj = {id: reportId, testElement: testPlan, type: 'API_PLAN', reportId: "run", projectId: projectId}; let bodyFiles = getBodyUploadFiles(reqObj, runData); this.$fileUpload("/api/definition/run", null, bodyFiles, reqObj, response => { });