From 814c479d7cbbbb803b88e0aecde715f5b2c4de13 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 1 Jun 2021 11:32:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=BD=93=E5=89=8DprojectId=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/automation/ApiAutomation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue index c2c8b2a291..0ec8eda914 100644 --- a/frontend/src/business/components/api/automation/ApiAutomation.vue +++ b/frontend/src/business/components/api/automation/ApiAutomation.vue @@ -74,7 +74,7 @@ import MsContainer from "@/business/components/common/components/MsContainer"; import MsAsideContainer from "@/business/components/common/components/MsAsideContainer"; import MsMainContainer from "@/business/components/common/components/MsMainContainer"; import MsApiScenarioList from "@/business/components/api/automation/scenario/ApiScenarioList"; -import {getCurrentUser, getUUID, hasPermission} from "@/common/js/utils"; +import {getCurrentProjectID, getCurrentUser, getUUID, hasPermission} from "@/common/js/utils"; import MsApiScenarioModule from "@/business/components/api/automation/scenario/ApiScenarioModule"; import MsEditApiScenario from "./scenario/EditApiScenario"; @@ -104,7 +104,7 @@ export default { return false; }, projectId() { - return this.$store.state.projectId; + return getCurrentProjectID(); }, }, data() {