Эх сурвалжийг харах

feat: timeline组件tag为空时优化

cuiyalong 1 жил өмнө
parent
commit
56f4803a28

+ 1 - 0
apps/bigmember_pc/src/components/time-line/TimeLine.vue

@@ -17,6 +17,7 @@
             <span
               class="step-tag"
               v-for="(tag, index) in item.tags"
+              v-show="tag"
               :key="index"
               >{{ tag }}</span
             >

+ 1 - 0
apps/mobile/src/ui/time-line/index.vue

@@ -20,6 +20,7 @@
                 class="step-tag j-tag-item border main round"
                 v-for="(tag, index) in item.tags"
                 :key="index"
+                v-show="tag"
                 >{{ tag }}</span
               >
               <span class="step-tag item-time">{{ item.step_time }}</span>