fix: 复制接口用例没反应
This commit is contained in:
parent
ab7c863acc
commit
65b702c9b5
|
@ -149,7 +149,7 @@
|
||||||
},
|
},
|
||||||
copyCase(data) {
|
copyCase(data) {
|
||||||
let obj = {name: "copy_" + data.name, priority: data.priority, active: false, request: data.request};
|
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) {
|
selectTestCase(item, $event) {
|
||||||
|
|
|
@ -21,12 +21,13 @@
|
||||||
<el-main v-loading="batchLoading" style="overflow: auto">
|
<el-main v-loading="batchLoading" style="overflow: auto">
|
||||||
<div v-for="(item,index) in apiCaseList" :key="index">
|
<div v-for="(item,index) in apiCaseList" :key="index">
|
||||||
<api-case-item v-loading="singleLoading && singleRunId === item.id"
|
<api-case-item v-loading="singleLoading && singleRunId === item.id"
|
||||||
@refresh="getApiTest"
|
@refresh="getApiTest"
|
||||||
@singleRun="singleRun"
|
@singleRun="singleRun"
|
||||||
@showExecResult="showExecResult"
|
@copyCase="copyCase"
|
||||||
:is-case-edit="isCaseEdit"
|
@showExecResult="showExecResult"
|
||||||
:api="api"
|
:is-case-edit="isCaseEdit"
|
||||||
:api-case="item" :index="index"/>
|
:api="api"
|
||||||
|
:api-case="item" :index="index"/>
|
||||||
</div>
|
</div>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
@ -187,6 +188,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
copyCase(data) {
|
||||||
|
this.apiCaseList.unshift(data);
|
||||||
|
},
|
||||||
|
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue