style(templates): 去掉模板页未使用的 v-for index

这 5 处 vue/no-unused-vars 是 `pnpm lint` 仅有的 5 个 error(357 条 warning 不阻塞)。
清掉之后 lint 才能进 git 钩子当护栏——此前这个 eslint 配置写了却从没在自动化里跑过。
This commit is contained in:
2026-09-29 16:15:06 +08:00
parent 7216b0ea8c
commit 3b703c70e8
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -67,7 +67,7 @@
<p class="text-gray-500 max-w-2xl mx-auto">从技术到服务,全链路保障客户的数字化投资回报</p>
</div>
<div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-6">
<div v-for="(item, index) in advantages" :key="item.title"
<div v-for="item in advantages" :key="item.title"
class="bg-white rounded-2xl p-7 shadow-sm hover:shadow-md transition-shadow border border-gray-100 group">
<div class="w-14 h-14 rounded-xl flex items-center justify-center mb-5 bg-blue-50">
<svg class="w-7 h-7 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="item.icon" /></svg>
@@ -113,7 +113,7 @@
<p class="text-gray-500 max-w-2xl mx-auto">沉淀多年的交付能力与行业口碑,是我们最扎实的底气</p>
</div>
<div class="grid grid-cols-2 lg:grid-cols-4 gap-6">
<div v-for="(s, index) in stats" :key="s.label"
<div v-for="s in stats" :key="s.label"
class="bg-white rounded-2xl p-8 text-center shadow-sm border border-gray-100">
<div class="text-gray-900 font-bold text-3xl sm:text-4xl">
{{ s.value }}<span class="text-blue-600">{{ s.suffix }}</span>