Browse Source

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

pull/1552/head
Yinux 5 years ago
committed by GitHub
parent
commit
8c607b38f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/views/sys/lock/useNow.ts

4
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;

Loading…
Cancel
Save