fix(移动端): 修复移动端时间过滤器初始化无法过滤Tab内部视图问题

This commit is contained in:
wangjiahao 2024-03-05 15:28:35 +08:00
parent bd181d16f0
commit b5b42b07fc

View File

@ -10,6 +10,9 @@ export function timeSection(date, type, labelFormat = 'yyyy-MM-dd') {
if (!date) { if (!date) {
return null return null
} }
if (typeof date === 'string') {
date = parseInt(date);
}
if (!(date instanceof Date)) { if (!(date instanceof Date)) {
date = new Date(date) date = new Date(date)
} }