Sfoglia il codice sorgente

fix: 提升无障碍访问

Lee 1 giorno fa
parent
commit
1accee6bd7
2 ha cambiato i file con 9 aggiunte e 3 eliminazioni
  1. 8 2
      app/components/section/solution.vue
  2. 1 1
      app/pages/index/index.vue

+ 8 - 2
app/components/section/solution.vue

@@ -88,7 +88,8 @@
           </button>
           <img
             :src="solution.hoverImg"
-            alt=""
+            :alt="solution.title + '解决方案示意图'"
+            loading="lazy"
             class="solution-card-img"
             :class="[
               index === activeIndex
@@ -114,7 +115,12 @@
                 : 'scale-100 opacity-100 delay-0 duration-500',
             ]"
           >
-            <img :src="solution.img" alt="" class="wh-35px" />
+            <img
+              :src="solution.img"
+              :alt="solution.title + '图标'"
+              loading="lazy"
+              class="wh-35px"
+            />
           </div>
 
           <div

+ 1 - 1
app/pages/index/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: LiZhiWei
  * @LastEditors: LiZhiWei
- * @LastEditTime: 2026-01-22 17:20:43
+ * @LastEditTime: 2026-01-23 09:23:23
  * @Description: 
 -->
 <template>