fix(测试跟踪): 切换测试计划时,关联用例列表不更新
This commit is contained in:
parent
021fef4980
commit
bd577770a4
|
@ -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();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue