fix(查询组件): 时间范围年月不显示

This commit is contained in:
dataeaseShu 2024-01-29 18:04:38 +08:00
parent 7395d52550
commit 6a11d5bd3c

View File

@ -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,