bug
This commit is contained in:
@@ -178,10 +178,15 @@ export default {
|
||||
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
values() {
|
||||
return this.data?.[this.data.dataType]?.map(e => {
|
||||
|
||||
values () {
|
||||
if (!this.data) {
|
||||
return []
|
||||
}
|
||||
|
||||
return this.data.type ==='map' ? this.data[this.data.dataType].map(e => {
|
||||
return {...e, lng: e['经度'], lat: e['纬度'], label: e['地区名称']}
|
||||
}) || []
|
||||
}) : this.data[this.data.dataType]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user