From 8c607b38f18ba8fded9e3203893240f422a4752a Mon Sep 17 00:00:00 2001 From: Yinux Date: Tue, 28 Dec 2021 18:42:51 +0800 Subject: [PATCH] fix: Fix the date and week display issue on the lock screen(#1539) (#1542) --- src/views/sys/lock/useNow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/sys/lock/useNow.ts b/src/views/sys/lock/useNow.ts index 76a54709..ee461fc3 100644 --- a/src/views/sys/lock/useNow.ts +++ b/src/views/sys/lock/useNow.ts @@ -25,8 +25,8 @@ export function useNow(immediate = true) { state.year = now.get('y'); state.month = now.get('M') + 1; - state.week = '星期' + ['一', '二', '三', '四', '五', '六', '日'][now.day() - 1]; - state.day = now.get('d'); + state.week = '星期' + ['日', '一', '二', '三', '四', '五', '六'][now.day()]; + state.day = now.get('date'); state.hour = h; state.minute = m; state.second = s;