elementui分页改变当前页失败

作者:zarte    发布时间: 2019-07-04

elementui


<el-pagination background @current-change="handleDialogCurrentChange" :page-size="dialogDetaiPageLimit" :current-page="dialogDetaiPageNow" layout="total, prev, pager, next, jumper" :total="dialogDetaiPageTotal">
</el-pagination>

错误示范:
this.dialogDetaiPageNow = 1
this.dialogDetailTable = this.dialogDetailTableList.slice(0, this.dialogDetaiPageLimit)



正确示范
this.dialogDetailTable = this.dialogDetailTableList.slice(0, this.dialogDetaiPageLimit)
this.dialogDetaiPageNow = 1

如上所示,先改变内容再改变当前页。

上一篇:  php+selenium爬虫

下一篇:  phpcurl请求服务器无法获取数据

加载更多