forked from github/dataease
fix: 过滤组件参数化获取数据不是最新的
This commit is contained in:
parent
3d07d09fa0
commit
93c8cf223b
@ -364,15 +364,13 @@ const init = (queryId: string) => {
|
||||
|
||||
const datasetMapKeyList = Object.keys(datasetMap)
|
||||
|
||||
nextTick(() => {
|
||||
getSqlParams([
|
||||
...new Set(
|
||||
datasetFieldList.value
|
||||
.map(ele => ele.tableId)
|
||||
.filter(ele => !datasetMapKeyList.includes(ele) && ele)
|
||||
)
|
||||
...new Set(datasetFieldList.value.map(ele => ele.tableId).filter(ele => !!ele))
|
||||
]).then(res => {
|
||||
parameters.value = res || []
|
||||
})
|
||||
})
|
||||
|
||||
if (datasetFieldIdList.every(ele => datasetMapKeyList.includes(ele))) {
|
||||
fields.value = datasetFieldList.value
|
||||
|
Loading…
Reference in New Issue
Block a user