This commit is contained in:
q4speed 2020-04-26 10:33:12 +08:00
parent a572c7fef5
commit 573d42230a
1 changed files with 10 additions and 8 deletions

View File

@ -75,15 +75,17 @@
},
getTest: function (id) {
this.result = this.$get("/api/get/" + id, response => {
let item = response.data;
if (response.data) {
let item = response.data;
this.test = new Test({
id: item.id,
projectId: item.projectId,
name: item.name,
scenarioDefinition: JSON.parse(item.scenarioDefinition),
});
this.$refs.config.reset();
this.test = new Test({
id: item.id,
projectId: item.projectId,
name: item.name,
scenarioDefinition: JSON.parse(item.scenarioDefinition),
});
this.$refs.config.reset();
}
});
},
saveTest: function () {