Browse Source

exhibition图片的无障碍信息从title中拿

任一存 3 năm trước cách đây
mục cha
commit
8c45792f75

+ 2 - 2
web/src/views/Exhibitions/info.vue

@@ -187,8 +187,8 @@
             v-for="i in data.objects"
             v-for="i in data.objects"
             :key="i"
             :key="i"
             tabindex="0"
             tabindex="0"
-            aria-label=""
-            aria-description=""
+            aria-label="Image"
+            :aria-description="tempArr[i-1]"
           >
           >
             <img
             <img
               :src="`/data/Exhibitions/${dataUrl}/objects${data.topImg}/objects${i}${data.imgLast}`"
               :src="`/data/Exhibitions/${dataUrl}/objects${data.topImg}/objects${i}${data.imgLast}`"