Merge pull request #12931 from dataease/pr@dev-v2@fix_chart_plugin_fields

fix(图表): 修复插件不显示维度和指标
This commit is contained in:
wisonic-s 2024-10-28 11:31:40 +08:00 committed by GitHub
commit 38f7bb052d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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