Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Amrith's avatar

Paginated Serial Number Not work

When i go to second page, it will starts to 1-6 instead of 6-12 , please help me to resolve this in vue envionment

`

                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
                                        {{ key+1}}
                                    </td>
                                    <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap">
                                        {{ client.fname }}
                                    </td>
                                    <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap">
                                        {{ client.lname }}
                                    </td>
                                    <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap">
                                        {{ client.email }}
                                    </td>
                                    <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap">
                                        {{ client.country }}
                                    </td>
                                </tr>

`

0 likes
1 reply
Pippo's avatar

it seems that key is the data array index (i see that you add 1 to it). Shouldn't you be sending the row id from backend instead ?

1 like

Please or to participate in this conversation.