Commit 3a2a0d56 authored by 刘殿昕's avatar 刘殿昕

数据分析小改

parent 3fa995d1
...@@ -579,7 +579,9 @@ export default { ...@@ -579,7 +579,9 @@ export default {
.then(response => { .then(response => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.toplistData = response.data.data; this.toplistData = response.data.data;
this.toplistTargetValue = this.toplistData[0].request_count; if (this.toplistData && this.toplistData.length != 0) {
this.toplistTargetValue = this.toplistData[0].request_count;
}
} }
}); });
}, },
...@@ -601,7 +603,9 @@ export default { ...@@ -601,7 +603,9 @@ export default {
}) })
.then(response => { .then(response => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.commentlistData = response.data.data; this.commentlistData = response.data.data.concat(
this.commentlistData
);
this.last_id = this.commentlistData[0].last_id; this.last_id = this.commentlistData[0].last_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