From 7a93548e42010ed218905ca2df6076f54fdfa4da Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Mon, 27 Apr 2020 19:00:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:asset=E6=98=BE=E7=A4=BA=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/asset/asset.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index f30c8522f..09e006299 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -970,11 +970,10 @@ let time=new Date(str); let year=time.getFullYear(); let month=time.getMonth()+1 > 9 ? time.getMonth()+1 : ('0'+(time.getMonth()+1)); - let day=time.getDay() > 9 ? time.getDay():('0'+time.getDay()); + let day=time.getDate() > 9 ? time.getDate():('0'+time.getDate()); let hours=time.getHours() > 9? time.getHours():('0'+time.getHours()); let minutes=time.getMinutes() > 9 ?time.getMinutes():('0'+time.getMinutes()); let seconds=time.getSeconds() > 9 ? time.getSeconds():('0'+time.getSeconds()); - return this.$t('asset.assetStatPre')+year+ds+month+ds+day+' '+hours+ts+minutes+ts+seconds; }