fix: 复制接口用例没反应

This commit is contained in:
chenjianxing 2020-12-17 15:56:54 +08:00
parent ab7c863acc
commit 65b702c9b5
2 changed files with 12 additions and 7 deletions

View File

@ -149,7 +149,7 @@
},
copyCase(data) {
let obj = {name: "copy_" + data.name, priority: data.priority, active: false, request: data.request};
this.apiCaseList.unshift(obj);
this.$emit('copyCase', obj);
},
selectTestCase(item, $event) {

View File

@ -23,6 +23,7 @@
<api-case-item v-loading="singleLoading && singleRunId === item.id"
@refresh="getApiTest"
@singleRun="singleRun"
@copyCase="copyCase"
@showExecResult="showExecResult"
:is-case-edit="isCaseEdit"
:api="api"
@ -187,6 +188,10 @@
}
},
copyCase(data) {
this.apiCaseList.unshift(data);
},
handleClose() {
this.visible = false;
},