File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 6666 style ="text-align: center "
6767 layout ="prev, pager, next, sizes "
6868 :page-size ="paginate.page_size "
69- @current-change ="loginAdmin "
69+ @current-change ="updatePage "
7070 @size-change ="updateSize "
7171 :total ="paginate.total "
7272 >
202202 this . paginate . size = value ;
203203 this . loginAdmin ( ) ;
204204 } ,
205+ updatePage : function ( value ) {
206+ this . paginate . page = value ;
207+ this . loginAdmin ( ) ;
208+ } ,
205209 deleteBanner : function ( index ) {
206210 this . config . banners . splice ( index , 1 ) ;
207211 } ,
225229 } ) ;
226230 } )
227231 } ,
228- loginAdmin : function ( current_page = 1 ) {
229- this . paginate . page = current_page ;
232+ loginAdmin : function ( ) {
230233 axios . post ( '' , this . paginate , {
231234 'headers' : {
232235 'pwd' : this . pwd ,
257260 }
258261 } )
259262</ script >
260- </ html >
263+ </ html >
You can’t perform that action at this time.
0 commit comments