Merge pull request '修正了小时出错' (#100) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/100
This commit is contained in:
luyuan 2020-10-30 16:07:39 +08:00
commit 37f3bf16a7

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