fix(仪表板): 修复联动中时间空值导致联动报错问题

This commit is contained in:
wangjiahao 2024-05-08 07:03:02 +08:00
parent 883a4797c3
commit b6accf53e1

View File

@ -1,4 +1,7 @@
export const getRange = (selectValue, timeGranularity) => {
if (new Date(selectValue).toString() === 'Invalid Date') {
return selectValue
}
switch (timeGranularity) {
case 'year':
case 'y':