fix(接口自动化): 解决场景导入显示ID失败页面报错

--user=郭雨琦 显示ID的只有场景API和CASE其余不显示
This commit is contained in:
guoyuqi 2021-11-22 11:46:05 +08:00 committed by 刘瑞斌
parent 5ad99db9ba
commit 98e931e096
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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>