Iview paging component failed to dynamically set the current value of the current page

 <Page class="page" ref="pages" :total="this.num" size="small" show-elevator :current="this.currentPage" @on-change="initSize"
            :page-size="10"></Page>
            

the problem is: if I click on page 3 and go to another page, when I go back to this page, the page number is still 3, it won"t change because I set up currentPage=1

Feb.28,2021

: current changed to: current.sync


<Page v-if='isReRender' ...

Control isReRender render again

The parameter in

iView that controls the currently selected page number is currentPage. You cannot assign a value to current by setting a variable named currentPage yourself.
you can use
this.$refs.pager.currentPage = 1;
to locate the current page number to page 1


positive solution ~


: remove this from current= "this.currentPage"

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-1b37355-2c05d.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-1b37355-2c05d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?