From 663c496d71b7cf9e2092b8c6aa179ddbaf5627fd Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Fri, 28 Nov 2025 17:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BA=E5=AE=9A=E7=89=A9?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index a649b15..ae2cf92 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1487,13 +1487,20 @@ const dots2 = computed(() => { }) const dotIndex2 = ref(-1) const table2Current = (e) => { - console.log(e) + let index = -1 + if (itemsId.value === 4) { + index = tableData3.value.findIndex(v => v.id === e.id) + } + if (itemsId.value === 5) { + index = tableData2.value.findIndex(v => v.id === e.id) + } + console.log(index) dotIndex.value = -1 dotIndex1.value = -1 - if (dotIndex2.value === e.$index) { + if (dotIndex2.value === index) { dotIndex2.value = -1 } else { - dotIndex2.value = e.$index + dotIndex2.value = index } console.log(dotIndex2.value) }