Merge pull request '修正了小时出错' (#100) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/100
This commit is contained in:
commit
37f3bf16a7
@ -289,7 +289,7 @@ export default defineComponent({
|
|||||||
const xs = ref(0);
|
const xs = ref(0);
|
||||||
setInterval(()=>{
|
setInterval(()=>{
|
||||||
const now = dayjs();
|
const now = dayjs();
|
||||||
const xiaoshi = now.month()
|
const xiaoshi = now.hour()
|
||||||
const fenzhong = now.minute()
|
const fenzhong = now.minute()
|
||||||
top.value = (xiaoshi + (fenzhong / 60)) * 0.63;
|
top.value = (xiaoshi + (fenzhong / 60)) * 0.63;
|
||||||
times.value = (xiaoshi > 10 ? xiaoshi : '0' + xiaoshi) + ":" + (fenzhong > 10 ? fenzhong : '0' + fenzhong);
|
times.value = (xiaoshi > 10 ? xiaoshi : '0' + xiaoshi) + ":" + (fenzhong > 10 ? fenzhong : '0' + fenzhong);
|
||||||
|
Loading…
Reference in New Issue
Block a user