From 0ae630c5f4612c8c90083cff966262789469f88a Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Fri, 2 Jul 2021 17:32:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=87=BA=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E4=B8=BAnull=20(#4356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chenjianxing --- .../components/api/automation/scenario/ApiScenarioList.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index 0ec0ed30c3..814613f576 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -434,10 +434,12 @@ export default { principal: [], environmentId: [], projectEnv: [], + projectId: '' }, }; }, created() { + this.projectId = getCurrentProjectID(); if(!this.projectName || this.projectName === ""){ this.getProjectName(); } @@ -481,9 +483,6 @@ export default { isNotRunning() { return "Running" !== this.report.status; }, - projectId() { - return getCurrentProjectID(); - }, }, methods: { getProjectName (){