fix(测试跟踪): 功能用例关联接口用例,显示的不是当前项目的

--bug=1007082 --user=lyh 【测试跟踪】功能用例关联接口用例,显示的不是当前项目的
https://www.tapd.cn/55049933/s/1057857
This commit is contained in:
shiziyuan9527 2021-10-22 17:38:57 +08:00 committed by shiziyuan9527
parent ce4415473f
commit 6b4d42ee23
1 changed files with 4 additions and 0 deletions

View File

@ -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 {TEST_CASE_RELEVANCE_API_CASE_CONFIGS} from "@/business/components/common/components/search/search-components";
import MsTableAdvSearchBar from "@/business/components/common/components/search/MsTableAdvSearchBar"; import MsTableAdvSearchBar from "@/business/components/common/components/search/MsTableAdvSearchBar";
import MsTag from "@/business/components/common/components/MsTag"; import MsTag from "@/business/components/common/components/MsTag";
import {getCurrentProjectID} from "@/common/js/utils";
export default { export default {
name: "TestCaseRelateApiList", name: "TestCaseRelateApiList",
@ -142,6 +143,9 @@ export default {
} else if (this.projectId != null) { } else if (this.projectId != null) {
this.condition.projectId = this.projectId; this.condition.projectId = this.projectId;
} }
if (this.condition.projectId === '') {
this.condition.projectId = getCurrentProjectID();
}
if (this.currentProtocol != null) { if (this.currentProtocol != null) {
this.condition.protocol = this.currentProtocol; this.condition.protocol = this.currentProtocol;
} }