Merge pull request #7888 from dataease/pr@dev-v2_query_com

fix(查询组件): 查询组件年不显示
This commit is contained in:
dataeaseShu 2024-01-29 18:36:00 +08:00 committed by GitHub
commit 73665bd585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@ interface SelectConfig {
timeNum: number timeNum: number
relativeToCurrentType: string relativeToCurrentType: string
around: string around: string
arbitraryTime: string arbitraryTime: Date
timeGranularity: DatePickType timeGranularity: DatePickType
} }

View File

@ -82,10 +82,11 @@ watch(
() => timeConfig.value, () => timeConfig.value,
() => { () => {
rendering.value = false rendering.value = false
nextTick(() => { 1 setTimeout(() => {
init() init()
console.log('config', config)
rendering.value = true rendering.value = true
}) }, 1000)
}, },
{ {
deep: true deep: true