修正了小时出错

This commit is contained in:
luyuan 2020-10-30 15:57:15 +08:00
parent 6cf34e698b
commit f0e1d05a73
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -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);