mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 14:20:25 +08:00
修复时间输入组件时间戳总是多一秒的Bug
This commit is contained in:
@@ -132,7 +132,7 @@ Vue.component("datetime-input", {
|
||||
this.hasSecondError = false
|
||||
date.setSeconds(second)
|
||||
|
||||
this.timestamp = Math.ceil(date.getTime() / 1000)
|
||||
this.timestamp = Math.floor(date.getTime() / 1000)
|
||||
},
|
||||
leadingZero: function (s, l) {
|
||||
if (l <= s.length) {
|
||||
|
||||
Reference in New Issue
Block a user