fix: 修复查询当前projectId的bug

This commit is contained in:
Captain.B 2021-06-01 11:32:23 +08:00 committed by 刘瑞斌
parent decc06d27c
commit 814c479d7c
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ import MsContainer from "@/business/components/common/components/MsContainer";
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer"; import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
import MsMainContainer from "@/business/components/common/components/MsMainContainer"; import MsMainContainer from "@/business/components/common/components/MsMainContainer";
import MsApiScenarioList from "@/business/components/api/automation/scenario/ApiScenarioList"; 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 MsApiScenarioModule from "@/business/components/api/automation/scenario/ApiScenarioModule";
import MsEditApiScenario from "./scenario/EditApiScenario"; import MsEditApiScenario from "./scenario/EditApiScenario";
@ -104,7 +104,7 @@ export default {
return false; return false;
}, },
projectId() { projectId() {
return this.$store.state.projectId; return getCurrentProjectID();
}, },
}, },
data() { data() {