el-pagination分页问题

获取到了总条数,也设置了每页展示几条数据,但是每一页展示的数据都是第一页的数据,这是什么原因。


<el-pagination
            @current-change="VehAccessPage"
            :current-page.sync="currentPage"
            :page-size="limit"
            prev-text='上一页'
            next-text='下一页'
            layout="total, prev, pager, next, jumper"
            :total="total"
            background>
          </el-pagination>

VehAccessPage(val){
      this.currentPage = val
      this.page = val
     //然后再跑一次你获取数据的方法
    },