Skip to content

Commit

Permalink
Merge pull request #78 from Kabimon/feature/ui_refactory
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
mingfengwang authored Feb 28, 2022
2 parents ead9b2d + c51869a commit 5b7c08e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/pages/jobManagement/components/job_card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
class="content-main-c-tags"
v-if="jobData.jobLabels && jobData.jobLabels.length > 0"
>
<template v-for="(tag, index) in jobData.jobLabels.split(',').slice(0,5)">
<a-tooltip v-if="tag.length > 5" :key="index" :title="tag">
<a-tag :key="tag">
<template v-for="(tag, index) in jobData.jobLabels.split(',').slice(0,5)" :key="index">
<a-tooltip v-if="tag.length > 5" :title="tag">
<a-tag>
{{ `${tag.slice(0, 5)}...` }}
</a-tag>
</a-tooltip>
<a-tag v-else :key="index">
<a-tag v-else>
{{ tag }}
</a-tag>
</template>
Expand Down

0 comments on commit 5b7c08e

Please sign in to comment.