Commit 8c607b38f18ba8fded9e3203893240f422a4752a
Committed by
GitHub
1 parent
b84cc5eb
fix: Fix the date and week display issue on the lock screen(#1539) (#1542)
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/sys/lock/useNow.ts
@@ -25,8 +25,8 @@ export function useNow(immediate = true) { | @@ -25,8 +25,8 @@ export function useNow(immediate = true) { | ||
25 | 25 | ||
26 | state.year = now.get('y'); | 26 | state.year = now.get('y'); |
27 | state.month = now.get('M') + 1; | 27 | state.month = now.get('M') + 1; |
28 | - state.week = '星期' + ['一', '二', '三', '四', '五', '六', '日'][now.day() - 1]; | ||
29 | - state.day = now.get('d'); | 28 | + state.week = '星期' + ['日', '一', '二', '三', '四', '五', '六'][now.day()]; |
29 | + state.day = now.get('date'); | ||
30 | state.hour = h; | 30 | state.hour = h; |
31 | state.minute = m; | 31 | state.minute = m; |
32 | state.second = s; | 32 | state.second = s; |