From 68030b1565be11798709fc88b230aa0e1ef8378c Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 22 Mar 2021 16:02:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AexprTemp=20=E4=BC=A0=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/dashboard/explore/promqlInput.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue b/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue index 864671f8f..7990b6b89 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue @@ -361,7 +361,7 @@ export default { let returnFlag = false let errorStr = '' this.tempBox.vars.forEach((item) => { - params.varsVal[item] = this.tempBox[item] + params.varsVal[item] = this.tempBoxId[item] || this.tempBox[item] if (!this.tempBox[item]) { errorStr += item + ',' returnFlag = true @@ -378,6 +378,7 @@ export default { if (this.tempBox.vars.length == 0) { this.tempBoxShow = false + // eslint-disable-next-line vue/no-mutating-props this.expressionList[this.index] = params.expression this.$emit('change', params.expression) return