fix: 动态时间切换bug

This commit is contained in:
dataeaseShu 2023-11-29 17:58:10 +08:00
parent 35b8205855
commit 3fb2921e72

View File

@ -598,7 +598,6 @@ const relativeToCurrentTypeList = computed(() => {
})
const timeGranularityChange = (val: string) => {
if (curComponent.value.timeType !== 'dynamic') return
if (
['year', 'month', 'date', 'datetime'].indexOf(val) <
['year', 'month', 'date'].indexOf(curComponent.value.relativeToCurrentType)