Skip to content

Commit

Permalink
fix(接口自动化): 解决场景导入显示ID失败页面报错
Browse files Browse the repository at this point in the history
--user=郭雨琦 显示ID的只有场景API和CASE其余不显示
  • Loading branch information
xiaomeinvG authored and liuruibin committed Nov 22, 2021
1 parent 5ad99db commit 98e931e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ export default {
}else if(data.refType==='CASE'){
funcs.push(this.getApiTestCaseNumById(data.id));
}
}else {
}else if(data.type==='scenario') {
funcs.push(this.getScenarioNumById(data.id));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</template>

<template v-slot:afterTitle>
<span @click = "clickResource(request)">{{"( ID: "+request.num+")"}}</span>
<span v-if="request.refType==='API'||request.refType==='CASE'" @click = "clickResource(request)">{{"( ID: "+request.num+")"}}</span>
</template>

<template v-slot:behindHeaderLeft>
Expand Down

0 comments on commit 98e931e

Please sign in to comment.