Merge pull request #8344 from dataease/pr@dev@fix_mobile-filter-tab

fix(移动端): 修复移动端时间过滤器初始化无法过滤Tab内部视图问题
This commit is contained in:
王嘉豪 2024-03-05 15:29:51 +08:00 committed by GitHub
commit dc01ffdb00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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