This commit is contained in:
yanran200730
2022-04-22 16:33:14 +08:00
parent 9283c0c283
commit 2074d29e55

View File

@@ -295,7 +295,9 @@
const date = new Date()
const seconds = date.getHours() * 3600 + date.getMinutes() * 60 + date.getSeconds()
this.x = seconds / (24 * 60 * 60) * this.canvasWidth
console.log(this.canvasWidth)
this.x = seconds / (24 * 60 * 60) * this.canvasWidth + 100
},
secTotime (s) {