소스 검색

fix change page

wolyshaw 4 년 전
부모
커밋
d8f92e3e35
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/components/Pagination/index.vue

+ 2 - 0
src/components/Pagination/index.vue

@@ -104,12 +104,14 @@ export default {
       if (this.autoScroll) {
         scrollTo(0, 800)
       }
+      this.syncStore()
     },
     handleCurrentChange (val) {
       this.$emit('pagination', { page: val, limit: this.pageSize })
       if (this.autoScroll) {
         scrollTo(0, 800)
       }
+      this.syncStore()
     }
   }
 }