forked from Mirrors/elk
fix: modal init state
This commit is contained in:
parent
00c9314580
commit
5788a12d59
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ const { modelValue } = defineModel<{
|
|||
modelValue: boolean
|
||||
}>()
|
||||
|
||||
let init = $ref(modelValue || false)
|
||||
let init = $ref(modelValue)
|
||||
watchOnce(modelValue, () => {
|
||||
init = true
|
||||
})
|
||||
|
|
|
@ -39,7 +39,7 @@ const transform = computed(() => {
|
|||
}
|
||||
})
|
||||
|
||||
let init = $ref(false)
|
||||
let init = $ref(modelValue)
|
||||
watchOnce(modelValue, () => {
|
||||
init = true
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue