fix(测试跟踪): 功能用例关联接口用例,显示的不是当前项目的
--bug=1007082 --user=lyh 【测试跟踪】功能用例关联接口用例,显示的不是当前项目的 https://www.tapd.cn/55049933/s/1057857
This commit is contained in:
parent
10e95314f7
commit
5277209f65
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue