From 3a2a0d565fcbc7dcdcc0950167f8bdf2cb1c285c Mon Sep 17 00:00:00 2001 From: liudianxin Date: Mon, 20 Jul 2020 11:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E5=B0=8F?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/data-analysis/my-service.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/data-analysis/my-service.vue b/src/pages/data-analysis/my-service.vue index 35be073..9fea938 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -579,7 +579,9 @@ export default { .then(response => { if (response.data.success == 1) { 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 { }) .then(response => { 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; } }); -- 2.26.0