This commit is contained in:
gpu 2026-02-03 02:28:21 +08:00
parent dafb12299e
commit 722b6f1e40

View File

@ -160,7 +160,7 @@ const formRules: FormRules = {
//
const handleCreated = (editor: IDomEditor) => {
console.log('[DanyeFormDialog] handleCreated called, editor:', editor)
console.log('[DanyeFormDialog] editor.isDestroyed:', editor.isDestroyed())
console.log('[DanyeFormDialog] editor.isDestroyed:', editor.isDestroyed)
editorRef.value = editor
//
@ -178,7 +178,7 @@ watch(() => props.modelValue, (visible) => {
formData.content = props.danye.content || ''
console.log('[DanyeFormDialog] formData.content set to:', formData.content.substring(0, 100))
console.log('[DanyeFormDialog] editorRef.value:', editorRef.value)
console.log('[DanyeFormDialog] editorRef.value?.isDestroyed():', editorRef.value?.isDestroyed?.())
console.log('[DanyeFormDialog] editorRef.value?.isDestroyed:', editorRef.value?.isDestroyed)
}
})
@ -211,7 +211,7 @@ const handleClose = () => {
console.log('[DanyeFormDialog] editorRef.value before destroy:', editorRef.value)
//
if (editorRef.value) {
console.log('[DanyeFormDialog] Destroying editor, isDestroyed:', editorRef.value.isDestroyed())
console.log('[DanyeFormDialog] Destroying editor, isDestroyed:', editorRef.value.isDestroyed)
editorRef.value.destroy()
editorRef.value = undefined
console.log('[DanyeFormDialog] Editor destroyed and set to undefined')