From 00b4d5d5d2d5449917eb5dd8179f9545ddbba0df Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 13 Jun 2022 18:55:11 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1924=20fix=EF=BC=9AExplore=E4=BF=9D?= =?UTF-8?q?=E5=AD=98Metrics=E6=97=B6=E4=B8=8D=E6=98=BE=E7=A4=BA=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/project/L5/CanvasProps.vue | 2 ++ .../page/dashboard/explore/promqlInput.vue | 22 ++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) 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) + } } },