From 0069e0661f937a166bbef383d566517d30a1ce8b Mon Sep 17 00:00:00 2001 From: likunming Date: Fri, 6 Sep 2024 10:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9codeMirror=E7=9A=84updateValu?= =?UTF-8?q?e=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/platform/components/code-mirror/WCodeMirror.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue b/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue index c00168ec..8f578bc2 100644 --- a/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue +++ b/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue @@ -12,7 +12,6 @@ :rules="FieldMethods.getRules(props, modelValue, fieldRef, undefined)" :readonly="FieldMethods.getReadOnly(props, modelValue)" :disable="FieldMethods.getDisable(props, modelValue)" - @update:model-value="fieldMethodsClass.updateValue" @focus.stop.prevent="focus" @blur.stop.prevent="blur" > @@ -271,6 +270,7 @@ onMounted(() => { content = content.replace(/[\r\n]/g, ''); } editorView.dispatch({ changes: { from: 0, to: editorView.state.doc.length, insert: content } }); + fieldMethodsClass.updateValue(content); } }, );