fix(图表): 修复插件不显示维度和指标

This commit is contained in:
wisonic 2024-10-28 11:30:27 +08:00
parent c7bba8592a
commit f7bb999f2e

View File

@ -583,6 +583,10 @@ const checkFieldIsAllowEmpty = (allField?) => {
showEmpty.value = false
if (view.value?.render && view.value?.type) {
const chartView = chartViewManager.getChartView(view.value.render, view.value.type)
//
if (!chartView) {
return
}
const map = parseJson(view.value.customAttr).map
if (['bubble-map', 'map'].includes(view.value?.type) && !map?.id) {
showEmpty.value = true