element-ui 分页pagination组件 动态设置默认页码

 <el-pagination
                hide-on-single-page
                @current-change="Current"
                :page-size="pageSize"
                :pager-count="11"
                ref="pagination"
                layout="prev, pager, next"
                :total="data.total"
                :current-page="pageIndex"
              ></el-pagination>

直接上代码

this.$nextTick(() => {//注意要用this.$nextTick,否则不生效
    this.$refs.pagination.internalCurrentPage = this.pageIndex;
})