From 09c015ad05fb567f1a44f7cdf11e7a505312648a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 12 Jul 2024 15:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/components/wangEditor.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/system/components/wangEditor.vue b/src/views/system/components/wangEditor.vue index b322507..32fd9b1 100644 --- a/src/views/system/components/wangEditor.vue +++ b/src/views/system/components/wangEditor.vue @@ -5,8 +5,8 @@ @onChange="onChange" @onCreated="onCreated" @onFocus="handleFocus" /> - - -
结果预览:
@@ -81,6 +80,7 @@ export default { data() { return { selectedOptions: [], + selectedOptionstwo:[], props: { value: "value", label: "label", @@ -253,9 +253,11 @@ export default { } this.fieldshow = false; setTimeout(() => { - this.editor.focus(); - }, 30); - + // this.editor.focus(); + this.add = []; + this.selectedOptionstwo = []; + this.editor.focus({ toEnd: true }); + }, 100); // setTimeout(() => { // if (this.modify) { // this.modify = false;