fix bug
This commit is contained in:
parent
a45e64fcb2
commit
188ff03a28
|
@ -14,7 +14,7 @@ export function parseTime(time, cFormat) {
|
|||
}
|
||||
const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
|
||||
let date
|
||||
if (typeof time === 'object') {
|
||||
if (typeof time === 'object' && time != null) {
|
||||
date = time
|
||||
} else {
|
||||
if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
|
||||
|
|
Loading…
Reference in New Issue