fix(测试跟踪): 切换测试计划时,关联用例列表不更新

This commit is contained in:
chenjianxing 2020-11-03 17:23:01 +08:00
parent 021fef4980
commit bd577770a4
1 changed files with 2 additions and 1 deletions

View File

@ -286,12 +286,13 @@
},
getProject() {
if (this.planId) {
this.$post("/test/plan/project/", {planId: this.planId}, res => {
this.result = this.$post("/test/plan/project/", {planId: this.planId}, res => {
let data = res.data;
if (data) {
this.projects = data;
this.projectId = data[0].id;
this.projectName = data[0].name;
this.search();
}
})
}