fix(接口自动化): 导入接口-按版本进行筛选失败

--bug=1012797 --user=李玉号 【接口测试】接口自动化-场景编辑-导入接口-按版本进行筛选失败
https://www.tapd.cn/55049933/s/1149273
This commit is contained in:
shiziyuan9527 2022-04-27 11:29:11 +08:00 committed by 刘瑞斌
parent 3222e861b5
commit edb3dd68fa
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ export default {
} else {
this.condition.protocol = "HTTP";
}
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
if (this.condition.filters) {
this.condition.filters.status = ["Prepare", "Underway", "Completed"];
} else {
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
}
let url = '/api/definition/list/';
if (this.isTestPlan) {
url = '/api/definition/list/relevance/';