fix:测试计划关联用例

This commit is contained in:
wenyann 2021-04-22 15:47:22 +08:00 committed by 刘瑞斌
parent 1b9f2caec3
commit 5e7205c890
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ export default {
}
if (this.projectId) {
this.condition.projectId = this.projectId;
this.result = this.$post(this.buildPagePath('/test/case/name'), this.condition, response => {
this.result = this.$post(this.buildPagePath('/test/case/list'), this.condition, response => {
let data = response.data;
this.total = data.itemCount;
let tableData = data.listObject;
@ -206,7 +206,7 @@ export default {
});
flag ? this.testCases = tableData : this.testCases = this.testCases.concat(tableData);
//
let hash = {}
let hash = {};
this.testCases = this.testCases.reduce((item, next) => {
if (!hash[next.id]) {
hash[next.id] = true