Commit bd5f0bfb by 陈超

A

parent 3bac90f1
......@@ -110,12 +110,12 @@
opt.page += 1
console.log(array)
opt.items = opt.items.concat(array.map( r => {
console.log(r.dateline)
console.log(new Date(r.dateline))
let d = new Date(r.dateline)
d.setTime()
return {
id: r.id,
title: r.title,
time: new Date(r.dateline).format("yyyy-MM-dd")
time: d.format("yyyy-MM-dd")
}
}))
}
......
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