From 8b13f62995cb7f080eabf2e22d530959d4b79e0b Mon Sep 17 00:00:00 2001 From: Li Kui <90845831+likui628@users.noreply.github.com> Date: Tue, 10 Oct 2023 13:28:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(Editor):=20ts=E7=B1=BB=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tinymce/src/Editor.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Tinymce/src/Editor.vue b/src/components/Tinymce/src/Editor.vue index 759b5d5a3..a569b76ae 100644 --- a/src/components/Tinymce/src/Editor.vue +++ b/src/components/Tinymce/src/Editor.vue @@ -246,7 +246,7 @@ bindHandlers(e, attrs, unref(editorRef)); } - function setValue(editor: Record, val: string, prevVal?: string) { + function setValue(editor: Record, val?: string, prevVal?: string) { if ( editor && typeof val === 'string' && @@ -263,14 +263,14 @@ watch( () => props.modelValue, - (val: string, prevVal: string) => { + (val, prevVal) => { setValue(editor, val, prevVal); }, ); watch( () => props.value, - (val: string, prevVal: string) => { + (val, prevVal) => { setValue(editor, val, prevVal); }, {