fix: 过滤组件参数化获取数据不是最新的

This commit is contained in:
dataeaseShu 2023-11-13 17:35:10 +08:00
parent 3d07d09fa0
commit 93c8cf223b

View File

@ -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))) {