mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 08:21:09 +08:00
fix(移动端): 修复移动端时间过滤器初始化无法过滤Tab内部视图问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user