From 9a9f9dd67261e75d66c338f8573fd0b60f7cab9e Mon Sep 17 00:00:00 2001 From: pyt <626651354@qq.com> Date: 星期五, 09 五月 2025 16:26:36 +0800 Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory --- laboratory/src/components/AiEditor/index.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/laboratory/src/components/AiEditor/index.vue b/laboratory/src/components/AiEditor/index.vue index c0bc236..9433983 100644 --- a/laboratory/src/components/AiEditor/index.vue +++ b/laboratory/src/components/AiEditor/index.vue @@ -60,10 +60,14 @@ }, immediate: true }, - readOnly(newVal) { - if (this.editor) { - this.editor.setReadOnly(newVal) - } + readOnly: { + handler(newVal) { + console.log('readOnly', newVal) + if (this.editor) { + this.editor.setReadOnly(newVal) + } + }, + immediate: true } }, mounted() { -- Gitblit v1.7.1