fix: 复制接口用例没反应
This commit is contained in:
parent
ab7c863acc
commit
65b702c9b5
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue