diff --git a/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue b/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue index 85679c782d..f3a44f3cba 100644 --- a/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue @@ -72,6 +72,7 @@ import TableSelectCountBar from "@/business/components/api/automation/scenario/a import {TEST_CASE_RELEVANCE_API_CASE_CONFIGS} from "@/business/components/common/components/search/search-components"; import MsTableAdvSearchBar from "@/business/components/common/components/search/MsTableAdvSearchBar"; import MsTag from "@/business/components/common/components/MsTag"; +import {getCurrentProjectID} from "@/common/js/utils"; export default { name: "TestCaseRelateApiList", @@ -142,6 +143,9 @@ export default { } else if (this.projectId != null) { this.condition.projectId = this.projectId; } + if (this.condition.projectId === '') { + this.condition.projectId = getCurrentProjectID(); + } if (this.currentProtocol != null) { this.condition.protocol = this.currentProtocol; }