mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-14 12:20:27 +08:00
修复日期控件初始化格式可能错误的问题
This commit is contained in:
@@ -132,7 +132,7 @@ Vue.component("datetime-input", {
|
||||
this.hasSecondError = false
|
||||
date.setSeconds(second)
|
||||
|
||||
this.timestamp = parseInt(date.getTime() / 1000)
|
||||
this.timestamp = Math.ceil(date.getTime() / 1000)
|
||||
},
|
||||
leadingZero: function (s, l) {
|
||||
if (l <= s.length) {
|
||||
|
||||
@@ -73,10 +73,11 @@ window.teaweb = {
|
||||
// 加载
|
||||
if (typeof Pikaday == "undefined") {
|
||||
let that = this
|
||||
this.loadJS("/js/moment.min.js")
|
||||
this.loadJS("/js/pikaday.js", function () {
|
||||
this.loadJS("/js/moment.min.js", function () {
|
||||
that.loadJS("/js/pikaday.js", function () {
|
||||
that.datepicker(element, callback)
|
||||
})
|
||||
})
|
||||
this.loadCSS("/js/pikaday.css")
|
||||
this.loadCSS("/js/pikaday.theme.css")
|
||||
this.loadCSS("/js/pikaday.triangle.css")
|
||||
|
||||
Reference in New Issue
Block a user