Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Jan 23, 2018
1 parent 60c89a1 commit bb9a255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/list.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
}).then(
resp => {
if (resp.status == 0) {
for (let i = 0; i < resp.data.data.length; i++) {
resp.data.data[i].created_at = self.timeParser(resp.data.data[i].created_at)
}
if (self.page != 1) {
self.details = self.details.concat(resp.data.data)
} else {
for (let i = 0; i < resp.data.data.length; i++) {
resp.data.data[i].created_at = self.timeParser(resp.data.data[i].created_at)
}
self.details = resp.data.data
}
self.$apply();
Expand Down

0 comments on commit bb9a255

Please sign in to comment.