forked from github/dataease
fix: 仪表板浏览器console报错
This commit is contained in:
parent
5a78aa0599
commit
b72955204d
@ -652,7 +652,7 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('chart.chart_style')" class="padding-tab" style="width: 300px">
|
||||
<chart-style
|
||||
v-if="chartProperties"
|
||||
v-if="chartProperties || view.isPlugin"
|
||||
:param="param"
|
||||
:view="view"
|
||||
:chart="chart"
|
||||
@ -1175,12 +1175,12 @@ export default {
|
||||
if (_this.chart && _this.chart.render) {
|
||||
const viewConfig = this.allViewRender.filter(item => item.render === _this.chart.render && item.value === _this.chart.type)
|
||||
if (viewConfig && viewConfig.length) {
|
||||
return viewConfig[0].properties
|
||||
return viewConfig[0].properties || []
|
||||
} else {
|
||||
return null
|
||||
return []
|
||||
}
|
||||
} else {
|
||||
return null
|
||||
return []
|
||||
}
|
||||
},
|
||||
chartType() {
|
||||
|
@ -354,7 +354,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
showProperties(property) {
|
||||
return this.properties.includes(property)
|
||||
return this.properties && this.properties.length && this.properties.includes(property)
|
||||
},
|
||||
showPropertiesCollapse(propertiesInfo) {
|
||||
let includeCount = 0
|
||||
|
Loading…
Reference in New Issue
Block a user