feat: 下拉刷新
This commit is contained in:
@@ -140,7 +140,7 @@ export default {
|
|||||||
searchList(params).then((res) => {
|
searchList(params).then((res) => {
|
||||||
let curPageLen = res.data ? res.data.length : 0;
|
let curPageLen = res.data ? res.data.length : 0;
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.dataList = this.dataList.concat(res.data);
|
this.dataList = page.num === 1 ? res.data : this.dataList.concat(res.data);
|
||||||
}
|
}
|
||||||
console.log(this.dataList);
|
console.log(this.dataList);
|
||||||
|
|
||||||
@@ -352,4 +352,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user