提交 98a61ab7 编写于 作者: H hdx

long-list: 使用展开运算符填充网络返回数据

上级 5051f4ba
......@@ -114,9 +114,7 @@
return
}
responseData.data.forEach((item) => {
this.dataList.push(item)
})
this.dataList.push(...responseData.data)
if (responseData.data.length == 0) {
this.isEnded = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册