From 4ba18699cac86b2fa58f34e4206bcd1484b2c8e7 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Tue, 28 Sep 2021 18:58:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Analysis.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/Analysis.vue b/src/views/dashboard/Analysis.vue index be7cf78..9b46ee6 100644 --- a/src/views/dashboard/Analysis.vue +++ b/src/views/dashboard/Analysis.vue @@ -229,8 +229,9 @@ export default { initDataStaticsData() { homePageDataStatistics().then(res => { this.statisticsData = res.result - this.statisticsData.nowMonthShowAddAmount = res.result.nowMonthAddAmount.slice(0, 3) - this.statisticsData.nowMonthShowAmount = res.result.nowMonthAmount.slice(0, 3) + // 2021-09-28 author:fac 后端修改了返回的数据格式 我加了toString + this.statisticsData.nowMonthShowAddAmount = res.result.nowMonthAddAmount.toString().slice(0, 3) + this.statisticsData.nowMonthShowAmount = res.result.nowMonthAmount.toString().slice(0, 3) this.statisticsData.nowMonthShowMail = res.result.nowMonthMail.toString().slice(0, 3) }) },