fix: 前端报错

This commit is contained in:
dataeaseShu 2023-05-12 16:14:05 +08:00
parent c2da4248a1
commit ba549dc5b6
2 changed files with 2 additions and 2 deletions

View File

@ -710,7 +710,7 @@ export default {
clearPanelLinkage(param) {
if (param.viewId === 'all' || param.viewId === this.element.propValue.viewId) {
try {
this.$refs[this.element.propValue.id].reDrawView()
this.$refs[this.element.propValue.id]?.reDrawView()
} catch (e) {
console.error('reDrawView-error', this.element.propValue.id)
}

View File

@ -755,7 +755,7 @@ export default {
type = 'NUM'
}
datasetParams(tableId, type).then(res => {
this.datasetParams = res.data
this.datasetParams = res.data || []
})
},
comLoadField(tableId) {