修改轮播图状态显示问题;课程分类leve字段不准确的bug

This commit is contained in:
2023-02-03 17:09:08 +08:00
parent 5b2fdcb833
commit c5fb597626
5 changed files with 22 additions and 16 deletions

View File

@@ -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
}