qiao 2 luni în urmă
părinte
comite
7344a4fb20
2 a modificat fișierele cu 7 adăugiri și 3 ștergeri
  1. 3 1
      src/pages/house/newHouse/[id].vue
  2. 4 2
      src/pages/house/oldHouse/[id].vue

+ 3 - 1
src/pages/house/newHouse/[id].vue

@@ -17,7 +17,9 @@
             <!-- 标题下方的标签 -->
             <div v-if="tags.length" class="flex flex-wrap text-[12px] mt-[14px]">
 
-                <div v-for="(item,index) in tags" :key="index" class="px-6 py-2 border border-[#666] text-[#666] rounded-full mr-8">{{ item }}</div>
+                <template v-for="(item, index) in tags" :key="index">
+                    <div v-if="item" class="px-6 py-2 border border-[#666] text-[#666] rounded-full mr-8">{{ item }}</div>
+                </template>
                 
             </div>
             <div class=" mt-[14px] text-[14px] font-bold text-[#FF1E1E]">

+ 4 - 2
src/pages/house/oldHouse/[id].vue

@@ -17,8 +17,10 @@
             </div>
 
             <div v-if="tags?.length" class="flex flex-wrap text-[12px] mt-[14px]">
-                <div v-for="(item, index) in tags" :key="index"
-                    class="px-6 py-2 border border-[#666] text-[#666] rounded-full mr-8">{{ item }}</div>
+                <template v-for="(item, index) in tags" :key="index">
+                    <div v-if="item" class="px-6 py-2 border border-[#666] text-[#666] rounded-full mr-8">{{ item }}</div>
+                </template>
+                
             </div>
             <div class="flex items-baseline mt-[14px]">
                 <span class="text-[14px] font-bold text-[#FF1E1E]">{{ detailData?.tourHouseSaleInfoVo?.currency }}{{