fix: 添加接口用例,接口定义列表未更新

This commit is contained in:
chenjianxing 2020-12-17 16:14:02 +08:00
parent 09bdbfc04a
commit 3b6e1748e8
1 changed files with 6 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<el-main v-loading="batchLoading" style="overflow: auto">
<div v-for="(item,index) in apiCaseList" :key="index">
<api-case-item v-loading="singleLoading && singleRunId === item.id"
@refresh="getApiTest"
@refresh="refresh"
@singleRun="singleRun"
@copyCase="copyCase"
@showExecResult="showExecResult"
@ -150,6 +150,11 @@
this.$emit('refresh');
},
refresh(data) {
this.getApiTest();
this.$emit('refresh');
},
getApiTest() {
if (this.api) {
this.condition.projectId = this.projectId;
@ -238,9 +243,6 @@
} else {
this.$warning("没有可执行的用例!");
}
},
refresh() {
this.getApiTest();
}
}
}