From 6a11d5bd3c046a54d094f40a966420621ebbbba8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 29 Jan 2024 18:04:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=E5=B9=B4=E6=9C=88=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/DynamicTimeRange.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 a3ded1adae..e41738bc83 100644 --- a/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue +++ b/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue @@ -45,6 +45,7 @@ const props = defineProps({ } }) const selectValue = ref<[Date, Date]>([new Date(), new Date()]) +const rendering = ref(true) const { config } = toRefs(props) @@ -80,7 +81,11 @@ const timeConfig = computed(() => { watch( () => timeConfig.value, () => { - init() + rendering.value = false + nextTick(() => { + init() + rendering.value = true + }) }, { deep: true @@ -106,8 +111,6 @@ watch( } ) -const rendering = ref(true) - const init = () => { const { timeNum,