diff --git a/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue b/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue index 7368512643..a048ea05db 100644 --- a/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue +++ b/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue @@ -34,7 +34,7 @@ import MsDialogFooter from '../../../../../common/components/MsDialogFooter' import SelectMenu from "../../../../common/SelectMenu"; import RelevanceDialog from "./RelevanceDialog"; - import {getCurrentProjectID, getCurrentUserId} from "@/common/js/utils"; + import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils"; export default { name: "TestCaseRelevanceBase", @@ -91,7 +91,7 @@ }, getProject() { - this.result = this.$post("/project/list/related", {userId: getCurrentUserId()}, res => { + this.result = this.$post("/project/list/related", {userId: getCurrentUserId(), workspaceId: getCurrentWorkspaceId()}, res => { let data = res.data; if (data) { const index = data.findIndex(d => d.id === getCurrentProjectID()); diff --git a/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue b/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue index 751175041b..e02de4196d 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue @@ -108,7 +108,7 @@ import ReviewStatus from "@/business/components/track/case/components/ReviewStat import elTableInfiniteScroll from 'el-table-infinite-scroll'; import SelectMenu from "../../../common/SelectMenu"; import {_filter} from "@/common/js/tableUtils"; -import {getCurrentProjectID, getCurrentUserId} from "@/common/js/utils"; +import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils"; export default { @@ -313,7 +313,7 @@ export default { }, getProject() { if (this.reviewId) { - this.$post("/project/list/related", {userId: getCurrentUserId()}, res => { + this.$post("/project/list/related", {userId: getCurrentUserId(), workspaceId: getCurrentWorkspaceId()}, res => { let data = res.data; if (data) { this.projects = data;