fix(移动端): 修复移动端时间过滤器初始化无法过滤Tab内部视图问题
This commit is contained in:
parent
bd181d16f0
commit
b5b42b07fc
@ -10,6 +10,9 @@ export function timeSection(date, type, labelFormat = 'yyyy-MM-dd') {
|
||||
if (!date) {
|
||||
return null
|
||||
}
|
||||
if (typeof date === 'string') {
|
||||
date = parseInt(date);
|
||||
}
|
||||
if (!(date instanceof Date)) {
|
||||
date = new Date(date)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user