触发前提 data上创建一个属性currentPage点击触发查询方法searchData时,传一个参数进去,其他情况调用searchData不必传参分页组件上必须有sync :current-page.sync="currentPage"重点就是searchData里的写法,见图