diff --git a/core/core-frontend/src/custom-component/v-query/DynamicTime.vue b/core/core-frontend/src/custom-component/v-query/DynamicTime.vue index 1d1677929d..936ed5c1e7 100644 --- a/core/core-frontend/src/custom-component/v-query/DynamicTime.vue +++ b/core/core-frontend/src/custom-component/v-query/DynamicTime.vue @@ -23,7 +23,7 @@ interface SelectConfig { timeNum: number relativeToCurrentType: string around: string - arbitraryTime: string + arbitraryTime: Date timeGranularity: DatePickType } diff --git a/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue b/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue index e41738bc83..342f7bd7cd 100644 --- a/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue +++ b/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue @@ -82,10 +82,11 @@ watch( () => timeConfig.value, () => { rendering.value = false - nextTick(() => { +1 setTimeout(() => { init() + console.log('config', config) rendering.value = true - }) + }, 1000) }, { deep: true