The paging component does not navigate to the top position when switching paging

topic description

when I pull the scroll bar to the bottom on the first page, and then switch to page 2 or page 3, the scroll bar is still at the bottom. I expect the scroll bar to return to the top position when I turn the page.

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

<Page :total="sum" :current="1" :page-size="pageSize" @on-change="change" @on-page-size-change="pageSizeChange"  show-sizer show-elevator show-total></Page>

what result do you expect? What is the error message actually seen?

Oct.19,2021

you just need to define a method that goes back to the top and call it in the on-change event of the Page component.

  

the key value of the table list binds the id of the data row

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e52958-27700.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e52958-27700.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?