From 89433705c55bba002722844bb1348376ccaf0751 Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sun, 10 Sep 2023 00:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=92=9F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tools/time.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/tools/time.vue b/pages/tools/time.vue index f850218..4833fd7 100644 --- a/pages/tools/time.vue +++ b/pages/tools/time.vue @@ -19,12 +19,12 @@ onBeforeUnmount(()=>{ 大屏时钟
- {{showTime.getHours()%12}} - {{(showTime.getHours()/12>1?"PM":"AM")}} + {{(showTime.getHours()%12)/10<1?`0${showTime.getHours()%12}`:showTime.getHours()%12}} + {{(showTime.getHours()/12>1?"PM":"AM")}} : - {{showTime.getMinutes()}} + {{(showTime.getMinutes())/10<1?`0${showTime.getMinutes()}`:showTime.getMinutes()}} : - {{showTime.getSeconds()}} + {{(showTime.getSeconds())/10<1?`0${showTime.getSeconds()}`:showTime.getSeconds()}}