mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-04-21 11:27:27 +08:00
Merge pull request #67 from nagisa77/codex/fix-uncaught-runtime-error-with-vditor
Fix Vditor init timing
This commit is contained in:
@@ -60,7 +60,10 @@ export default {
|
|||||||
'link',
|
'link',
|
||||||
'image'
|
'image'
|
||||||
],
|
],
|
||||||
toolbarConfig: { pin: true }
|
toolbarConfig: { pin: true },
|
||||||
|
after() {
|
||||||
|
vditorInstance.value = this
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -57,9 +57,11 @@ export default {
|
|||||||
cache: { enable: false },
|
cache: { enable: false },
|
||||||
input(value) {
|
input(value) {
|
||||||
emit('update:modelValue', value)
|
emit('update:modelValue', value)
|
||||||
|
},
|
||||||
|
after() {
|
||||||
|
vditorInstance.value.setValue(props.modelValue)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
vditorInstance.value.setValue(props.modelValue)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user