Unverified 提交 8c607b38 作者: Yinux 提交者: GitHub

fix: Fix the date and week display issue on the lock screen(#1539) (#1542)

上级 b84cc5eb
...@@ -25,8 +25,8 @@ export function useNow(immediate = true) { ...@@ -25,8 +25,8 @@ export function useNow(immediate = true) {
state.year = now.get('y'); state.year = now.get('y');
state.month = now.get('M') + 1; state.month = now.get('M') + 1;
state.week = '星期' + ['一', '二', '三', '四', '五', '六', '日'][now.day() - 1]; state.week = '星期' + ['日', '一', '二', '三', '四', '五', '六'][now.day()];
state.day = now.get('d'); state.day = now.get('date');
state.hour = h; state.hour = h;
state.minute = m; state.minute = m;
state.second = s; state.second = s;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论