From 93c8cf223b0025832eb1eb1eabfb1bc36cc547b7 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 13 Nov 2023 17:35:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=8C=96=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E6=9C=80=E6=96=B0=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index 0888fe45e6..1878c9205c 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -364,14 +364,12 @@ const init = (queryId: string) => { const datasetMapKeyList = Object.keys(datasetMap) - getSqlParams([ - ...new Set( - datasetFieldList.value - .map(ele => ele.tableId) - .filter(ele => !datasetMapKeyList.includes(ele) && ele) - ) - ]).then(res => { - parameters.value = res || [] + nextTick(() => { + getSqlParams([ + ...new Set(datasetFieldList.value.map(ele => ele.tableId).filter(ele => !!ele)) + ]).then(res => { + parameters.value = res || [] + }) }) if (datasetFieldIdList.every(ele => datasetMapKeyList.includes(ele))) {