fix(接口定义): 修复用例列表新建用例时标签未清空的问题

This commit is contained in:
shiziyuan9527 2021-01-26 21:43:05 +08:00
parent 55ed001b16
commit 56be5270f2
1 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@
<el-container v-loading="result.loading">
<el-main>
<div v-for="(item,index) in apiCaseList" :key="index">
<div v-for="(item,index) in apiCaseList" :key="getRandomID()">
<api-case-item v-loading="singleLoading && singleRunId === item.id || batchLoadingIds.indexOf(item.id) > -1"
@refresh="refresh"
@singleRun="singleRun"
@ -242,7 +242,9 @@
this.apiCaseList.unshift(obj);
}
},
getRandomID() {
return getUUID();
},
copyCase(data) {
this.apiCaseList.unshift(data);
},