From c101ced823da8c72d66c2cedca1fd4248da20aa9 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 21 Nov 2022 17:49:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=BC=95=E7=94=A8=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=87=AA=E5=AE=9A=E4=B9=89num=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019897 --user=赵勇 [项目设置]应用管理-接口测试tab-开启场景ID自定义开关后新建的场景被引用后显示的ID错误 https://www.tapd.cn/55049933/s/1299844 --- .../scenario/api/RelevanceScenarioList.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/api-test/frontend/src/business/automation/scenario/api/RelevanceScenarioList.vue b/api-test/frontend/src/business/automation/scenario/api/RelevanceScenarioList.vue index afad26371e..f26021956a 100644 --- a/api-test/frontend/src/business/automation/scenario/api/RelevanceScenarioList.vue +++ b/api-test/frontend/src/business/automation/scenario/api/RelevanceScenarioList.vue @@ -164,9 +164,11 @@ export default { }; this.selectNodeIds.length = 0; this.search(); + this.getProject(); }, }, created() { + this.getProject(); this.getWsProjects(); this.getVersionOptions(); }, @@ -211,15 +213,12 @@ export default { this.projectList = res.data; }); }, - getProject(projectId) { - if (projectId) { - getProjectConfig(projectId, '/SCENARIO_CUSTOM_NUM').then((result) => { - let data = result.data; - if (data) { - this.customNum = data.scenarioCustomNum; - } - }); - } + getProject() { + getProjectConfig(this.projectId, '/SCENARIO_CUSTOM_NUM').then((result) => { + if (result.data) { + this.customNum = result.data.scenarioCustomNum; + } + }); }, getConditions() { this.condition.tableDataIds = Array.from(this.tableData).map((row) => row.id);