BUG 26118

This commit is contained in:
aixianling
2021-12-28 16:30:48 +08:00
parent c3118f9f8c
commit d7b4306b5b
4 changed files with 7 additions and 12 deletions

View File

@@ -157,7 +157,7 @@ export default {
},
computed: {
config() {
return !!this.index ? this.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === this.filedType)[0]))
return this.index > -1 ? this.filed : components?.filter(v => v.type === this.filedType)?.[0] || {}
},
pointTypeName() {
if (!this.config.pointDict) return ''