mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
fix(仪表板): 修复联动中时间空值导致联动报错问题
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
export const getRange = (selectValue, timeGranularity) => {
|
||||
if (new Date(selectValue).toString() === 'Invalid Date') {
|
||||
return selectValue
|
||||
}
|
||||
switch (timeGranularity) {
|
||||
case 'year':
|
||||
case 'y':
|
||||
|
||||
Reference in New Issue
Block a user