diff --git a/nezha-fronted/src/components/common/project/L5/CanvasProps.vue b/nezha-fronted/src/components/common/project/L5/CanvasProps.vue index 4752b93f6..69d274f30 100644 --- a/nezha-fronted/src/components/common/project/L5/CanvasProps.vue +++ b/nezha-fronted/src/components/common/project/L5/CanvasProps.vue @@ -46,6 +46,7 @@ style=""> { - // const text = this.newView.state.doc.toString() - // this.newView.dispatch( - // this.newView.state.update({ - // changes: { from: 0, to: text.length, insert: this.codeMirrorValue[this.index] } - // }) - // ) - // }, 200) + if (this.isTopo) { + setTimeout(() => { + const text = this.newView.state.doc.toString() + this.newView.dispatch( + this.newView.state.update({ + changes: { from: 0, to: text.length, insert: this.codeMirrorValue[this.index] } + }) + ) + }, 200) + } } },