Yinux
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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; |
|
|
|
|