From 51cf5b7c6760293f2a584a7f7dcb865de58a319f Mon Sep 17 00:00:00 2001 From: zbk <540064991@qq.com> Date: Thu, 1 Jun 2023 03:57:13 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E8=87=AA=E5=8A=A8=E8=81=9A=E7=84=A6=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20update=20yudao-ui-admin/src/components/Editor/index.vue.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E8=87=AA=E5=8A=A8=E8=81=9A=E7=84=A6=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B=20=E6=80=9D=E8=B7=AF=EF=BC=9A=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E5=88=9D=E5=A7=8B=E5=8C=96=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E7=BC=96=E8=BE=91=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E5=8F=AA=E8=AF=BB=E6=A8=A1=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E4=B8=8D=E4=BC=9A=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E8=81=9A=E7=84=A6=E9=97=AE=E9=A2=98=E5=B8=A6=E8=B7=91=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=EF=BC=8C=E7=84=B6=E5=90=8E=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E7=9A=84=E6=98=AF=E5=90=A6=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=90=AF=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zbk <540064991@qq.com> --- yudao-ui-admin/src/components/Editor/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin/src/components/Editor/index.vue b/yudao-ui-admin/src/components/Editor/index.vue index 61d62434e..bc14fc3a9 100644 --- a/yudao-ui-admin/src/components/Editor/index.vue +++ b/yudao-ui-admin/src/components/Editor/index.vue @@ -84,7 +84,7 @@ export default { ], }, placeholder: "请输入内容", - readOnly: this.readOnly, + readOnly: true, }, }; }, @@ -123,6 +123,13 @@ export default { init() { const editor = this.$refs.editor; this.Quill = new Quill(editor, this.options); + // 取消自动聚焦 start + this.$nextTick(()=>{ + this.Quill.blur(); + if(!this.readOnly){ + this.Quill.enable(); + } + }); // 如果设置了上传地址则自定义图片上传事件 if (this.type === 'url') { let toolbar = this.Quill.getModule("toolbar");