fix (接口自动化): 修复查看引用问题

--bug=1007453 --user=赵勇 【接口测试】场景查看引用,场景引用显示了两次 https://www.tapd.cn/55049933/s/1058821
This commit is contained in:
fit2-zhao 2021-10-25 18:44:58 +08:00 committed by fit2-zhao
parent 1f5de735fd
commit 6b1d5c38da
1 changed files with 47 additions and 43 deletions

View File

@ -4,7 +4,11 @@
<span>{{ $t('api_test.automation.scenario_ref') }}</span>
<div class="refs" v-loading="scenarioLoading">
<div v-for="(item, index) in scenarioRefs" :key="index" class="el-button--text">
<el-link @click="openScenario(item)">
<el-link @click="openScenario(item)" v-if="item.status === 'Trash'">
{{ item.name }}
<el-tag size="mini">{{ $t('commons.trash') }}</el-tag>
</el-link>
<el-link @click="openScenario(item)" v-else>
{{ item.name }}
</el-link>
</div>