Commit ef1120dc by 陈超

T

parent 01b95571
...@@ -386,7 +386,8 @@ ...@@ -386,7 +386,8 @@
if(that.page != 0) { if(that.page != 0) {
old = that.items old = that.items
} }
that.items = old.concat(res.data.map( r => { let array = res.data.length > 0 ? res.data : []
that.items = old.concat(array.map( r => {
let pi = r.mz_price let pi = r.mz_price
return { return {
id: r.id, id: r.id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment