Merge pull request #6365 from dataease/pr@dev-v2@fix_history-view

fix: 部分存量视图不显示问题
This commit is contained in:
王嘉豪 2023-10-25 17:52:18 +08:00 committed by GitHub
commit c2c871676f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,7 +434,7 @@ onMounted(() => {
}
})
useEmitt({
name: 'calcData-' + view.value.id,
name: 'calc-data-' + view.value.id,
callback: function (val) {
if (!state.initReady) {
return
@ -497,7 +497,8 @@ const loadingFlag = computed(() => {
const chartAreaShow = computed(() => {
return (
(view.value.tableId && element.value['state'] === 'ready') ||
(view.value.tableId &&
(element.value['state'] === undefined || element.value['state'] === 'ready')) ||
view.value.type === 'rich-text' ||
(view.value.type === 'map' && view.value.customAttr.map.id)
)