Commit e2de8bf9 by 匡雅琴

搜索查询

1 parent e18eb4af
...@@ -94,8 +94,12 @@ export default { ...@@ -94,8 +94,12 @@ export default {
console.log(res) console.log(res)
if (res.data.length) { if (res.data.length) {
this.count = res.count this.count = res.count
if (params.pageNum == 1) {
this.searchList = res.data
} else {
this.searchList = this.searchList.concat(res.data) this.searchList = this.searchList.concat(res.data)
} }
}
this.pageParams.pageNum++ this.pageParams.pageNum++
console.log(this.searchList) console.log(this.searchList)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!