This commit is contained in:
yanran200730
2022-06-22 10:53:36 +08:00
parent 98762e996c
commit e7e69d72e3
2 changed files with 14 additions and 6 deletions

View File

@@ -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: {