From 75a56eec3a44f95fcee92f37f47c5e68f9fe63a7 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 14:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E4=BA=91=E5=9B=BEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capabilityCloud/components/ComponentServices.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue index 4003bd3b..f2dd031d 100644 --- a/front/src/views/capabilityCloud/components/ComponentServices.vue +++ b/front/src/views/capabilityCloud/components/ComponentServices.vue @@ -180,7 +180,11 @@ callTheTrendPort(start, end, 86400).then((res) => { if (res.data.data.result) { // res.data.data.result.splice(0, 1) + callTheTrendData.value.snum = [] res.data.data.result[0].values.map((item) => { + callTheTrendData.value.snum.push( + moment(item[0] * 1000).format('MM-DD') + ) callTheTrendData.value.snum.push(parseInt(item[1])) }) callTheTrend(callTheTrendData.value)