From d318b6560809de28df846a1306408f1599289db1 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期五, 09 五月 2025 18:01:08 +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