修正了小时出错
This commit is contained in:
parent
6cf34e698b
commit
f0e1d05a73
@ -289,7 +289,7 @@ export default defineComponent({
|
||||
const xs = ref(0);
|
||||
setInterval(()=>{
|
||||
const now = dayjs();
|
||||
const xiaoshi = now.month()
|
||||
const xiaoshi = now.hour()
|
||||
const fenzhong = now.minute()
|
||||
top.value = (xiaoshi + (fenzhong / 60)) * 0.63;
|
||||
times.value = (xiaoshi > 10 ? xiaoshi : '0' + xiaoshi) + ":" + (fenzhong > 10 ? fenzhong : '0' + fenzhong);
|
||||
|
Loading…
x
Reference in New Issue
Block a user