hejianhao
2025-05-09 d318b6560809de28df846a1306408f1599289db1
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() {