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

Menu