From 227b5c331afa4f48e738c98afbbf17d1c725c714 Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Tue, 28 Jun 2022 23:48:04 +0800 Subject: [PATCH] .. --- apps/Note.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/Note.js b/apps/Note.js index 38f8fd7..8ff7dcc 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -137,6 +137,7 @@ export async function Note(e, { time_cha = 12; } val.percentage = ((val.dq_time / 60 / 60 * 1 / time_cha) * 100 / 10).toFixed(0) * 10; + if(val.dq_time==0) val.percentage=0; let remainedDate = new Date(val.remained_time); val.remained_time = format("hh:mm", remainedDate); let Time_day = await dateTime_(remainedDate)