瀏覽代碼

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()
     }
   }
 }