Commit 2bc62bd2 by 匡雅琴

新疆地图返回城市为空解决

1 parent 93d5ebfc
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
// 获取省市 // 获取省市
var provincecode = this.$refs.mapForm.geocoderAddress.adcode var provincecode = this.$refs.mapForm.geocoderAddress.adcode
var province = fullAddress.province var province = fullAddress.province
var city = fullAddress.city var city = fullAddress.city ? fullAddress.city : fullAddress.district
const municipalities = ['北京市', '天津市', '上海市', '重庆市'] const municipalities = ['北京市', '天津市', '上海市', '重庆市']
var municipality = municipalities.find(item => item == province) var municipality = municipalities.find(item => item == province)
if (municipality) { if (municipality) {
......
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
// 获取省市 // 获取省市
var provincecode = this.$refs.mapForm.geocoderAddress.adcode var provincecode = this.$refs.mapForm.geocoderAddress.adcode
var province = fullAddress.province var province = fullAddress.province
var city = fullAddress.city var city = fullAddress.city ? fullAddress.city : fullAddress.district
const municipalities = ['北京市', '天津市', '上海市', '重庆市'] const municipalities = ['北京市', '天津市', '上海市', '重庆市']
var municipality = municipalities.find(item => item == province) var municipality = municipalities.find(item => item == province)
if (municipality) { if (municipality) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!