From 151414429c662a6790db9a6bf00c372be4b00cec Mon Sep 17 00:00:00 2001 From: q15971095971 <764419406@qq.com> Date: Wed, 11 Dec 2024 14:30:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E7=9B=91=E6=8E=A7=E3=80=91?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E5=88=87=E6=8D=A2promql=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E6=B7=BB=E5=8A=A0=E6=A3=80=E6=9F=A5=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E4=BC=9A=E6=9C=89=E6=9F=A5=E8=AF=A2=E7=BB=B4=E5=BA=A6=E5=80=BC?= =?UTF-8?q?=E5=88=97=E8=A1=A8api=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../strategy-config-set/strategy-view/strategy-view.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bkmonitor/webpack/src/monitor-pc/pages/strategy-config/strategy-config-set/strategy-view/strategy-view.tsx b/bkmonitor/webpack/src/monitor-pc/pages/strategy-config/strategy-config-set/strategy-view/strategy-view.tsx index a1bb02a433..87b7b9041f 100644 --- a/bkmonitor/webpack/src/monitor-pc/pages/strategy-config/strategy-config-set/strategy-view/strategy-view.tsx +++ b/bkmonitor/webpack/src/monitor-pc/pages/strategy-config/strategy-config-set/strategy-view/strategy-view.tsx @@ -512,7 +512,10 @@ export default class StrategyView extends tsc { query_configs: queryConfigs, dimension_field: item.id, }; - promiseList.push(dimensionUnifyQuery(params)); + // promql模式下不需要再去查询维度值列表 + if (this.editMode !== 'Source') { + promiseList.push(dimensionUnifyQuery(params)); + } }); const data = await Promise.all(promiseList).catch(() => []); this.dimensionList.forEach((dimension, index) => {