Merge pull request #10598 from dataease/pr@dev-v2_st

fix(查询组件): 仪表板在编辑状态时,新建数据集后,查询条件不能获取最新数据集
This commit is contained in:
dataeaseShu 2024-06-28 14:14:54 +08:00 committed by GitHub
commit f8525ea4ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -540,7 +540,11 @@ const autoStyle = computed(() => {
</div>
</div>
<div class="query-select">
<StyleInject :customStyle="customStyle" :config="ele"></StyleInject>
<StyleInject
v-if="customStyle.queryConditionWidth !== 0"
:customStyle="customStyle"
:config="ele"
></StyleInject>
</div>
</div>
</div>

View File

@ -775,9 +775,7 @@ const setActiveSelectTab = (arr, id) => {
}
const init = (queryId: string) => {
if (!datasetTree.value.length) {
initDataset()
}
initDataset()
renameInput.value = []
handleCondition({ id: queryId })
cascadeArr = cloneDeep(queryElement.value.cascade || [])