From 29258f31d391b346900c1ff1d8d6e0a52258d524 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 25 Apr 2022 14:47:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=20promql-input?= =?UTF-8?q?=20=20=20metrics=20=E4=BB=A5=E5=8F=8A=20logs=20=E7=9A=84?= =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/dashboard/explore/promqlInput.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue b/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue index 905af90a6..16d9d83ac 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue @@ -1111,9 +1111,11 @@ export default { type: { deep: true, immediate: true, - handler(n) { + handler (n) { if (n !== 'log') { - this.initCodeMirror() + this.$nextTick(() => { + this.initCodeMirror() + }) } } }