Skip to content

Commit

Permalink
fix: testcase pages show badge question (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamYSF authored May 29, 2024
1 parent 1a720c0 commit b9533ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions console/atest-ui/src/views/TestCase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ const duplicateTestCase = () => {
<el-tab-pane name="query" v-if="props.kindName !== 'tRPC' && props.kindName !== 'gRPC'">
<template #label>
<el-badge :value="testCaseWithSuite.data.request.query.length - 1"
:hidden="testCaseWithSuite.data.request.query.length === 1" class="item">Query</el-badge>
:hidden="testCaseWithSuite.data.request.query.length <=1 " class="item">Query</el-badge>
</template>
<el-table :data="testCaseWithSuite.data.request.query" style="width: 100%">
<el-table-column label="Key" width="180">
Expand All @@ -602,7 +602,7 @@ const duplicateTestCase = () => {
<el-tab-pane name="header">
<template #label>
<el-badge :value="testCaseWithSuite.data.request.header.length - 1"
:hidden="testCaseWithSuite.data.request.header.length === 1" class="item">Header</el-badge>
:hidden="testCaseWithSuite.data.request.header.length <= 1" class="item">Header</el-badge>
</template>
<el-table :data="testCaseWithSuite.data.request.header" style="width: 100%">
<el-table-column label="Key" width="180">
Expand Down Expand Up @@ -633,7 +633,7 @@ const duplicateTestCase = () => {
<el-tab-pane name="cookie">
<template #label>
<el-badge :value="testCaseWithSuite.data.request.cookie.length - 1"
:hidden="testCaseWithSuite.data.request.cookie.length === 1" class="item">Cookie</el-badge>
:hidden="testCaseWithSuite.data.request.cookie.length <= 1" class="item">Cookie</el-badge>
</template>
<el-table :data="testCaseWithSuite.data.request.cookie" style="width: 100%">
<el-table-column label="Key">
Expand Down

0 comments on commit b9533ee

Please sign in to comment.