You've already forked vue-element-admin
add test
This commit is contained in:
@@ -36,7 +36,11 @@ export function parseTime(time, cFormat) {
|
||||
}
|
||||
|
||||
export function formatTime(time, option) {
|
||||
time = +time * 1000
|
||||
if (('' + time).length === 10) {
|
||||
time = parseInt(time) * 1000
|
||||
} else {
|
||||
time = +time
|
||||
}
|
||||
const d = new Date(time)
|
||||
const now = Date.now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user