2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 11:40:51 +08:00

修补问题

This commit is contained in:
leiyilu 2022-06-28 23:36:36 +08:00
parent de13770be6
commit 9d8fc8b920

View File

@ -140,10 +140,11 @@ export async function Note(e, {
let remainedDate = new Date(val.remained_time); let remainedDate = new Date(val.remained_time);
val.remained_time = format("hh:mm", remainedDate); val.remained_time = format("hh:mm", remainedDate);
let Time_day = await dateTime_(remainedDate) let Time_day = await dateTime_(remainedDate)
val.remained_mb2 = Time_day + moment(remainedDate).format("hh:mm" );
if (format("dd", remainedDate) != nowDay) { if (format("dd", remainedDate) != nowDay) {
val.remained_mb2 = "明天"+Time_day + moment(remainedDate).format("hh:mm" );
val.remained_time = `明天 ${val.remained_time}`; val.remained_time = `明天 ${val.remained_time}`;
} else { } else {
val.remained_mb2 = "今天"+Time_day + moment(remainedDate).format("hh:mm" );
val.remained_time = ` ${val.remained_time}`; val.remained_time = ` ${val.remained_time}`;
} }
} }