From 806af8b9f8bcac678a438338b19374d710326658 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Sun, 14 Jan 2024 20:12:18 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BC=96=E8=BE=91=E5=99=A8=E4=BC=98=E5=8C=96?= =?UTF-8?q?=202024.1.14=20sws?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/sp-editor/components/sp-editor/sp-editor.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/uni_modules/sp-editor/components/sp-editor/sp-editor.vue b/uni_modules/sp-editor/components/sp-editor/sp-editor.vue index ba519e7e..3c85ec1a 100644 --- a/uni_modules/sp-editor/components/sp-editor/sp-editor.vue +++ b/uni_modules/sp-editor/components/sp-editor/sp-editor.vue @@ -92,9 +92,6 @@ } }, }, - mounted() { - this.onEditorReady(); - }, methods: { onEditorReady() { // #ifdef MP-BAIDU @@ -109,9 +106,9 @@ this.editorCtx = res.context; this.$emit('init', this.editorCtx); // 启用preRender方法时会预先渲染templates内容,但是在小程序中会导致页面自动聚焦至富文本的区域 - // if (this.templates) { - this.preRender(); - // } + if (this.templates) { + this.preRender(); + } }) .exec((result) => {}); // #endif