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) }