21
This commit is contained in:
parent
dafb12299e
commit
722b6f1e40
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user