修改轮播图状态显示问题;课程分类leve字段不准确的bug
This commit is contained in:
@@ -14,9 +14,7 @@ export function parseTime(time, cFormat) {
|
||||
if (arguments.length === 0) {
|
||||
return null
|
||||
}
|
||||
if (time_str.indexOf('01-01-01') > -1) {
|
||||
return '-'
|
||||
}
|
||||
|
||||
const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
|
||||
let date
|
||||
if (typeof time === 'object') {
|
||||
@@ -45,7 +43,9 @@ export function parseTime(time, cFormat) {
|
||||
if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] }
|
||||
return value.toString().padStart(2, '0')
|
||||
})
|
||||
|
||||
if (time_str.indexOf('01-01-01') > -1) {
|
||||
return '-'
|
||||
}
|
||||
return time_str
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user