|
|
@@ -146,7 +146,7 @@
|
|
|
},
|
|
|
changeAreaFn(e) {
|
|
|
console.log('changeAreaFn', e)
|
|
|
- this.form.address = e.address
|
|
|
+ this.form.address = e.title
|
|
|
this.region.lat = e.location.lat
|
|
|
this.region.long = e.location.lng
|
|
|
},
|
|
|
@@ -168,6 +168,7 @@
|
|
|
if (this.option.id) {
|
|
|
this.form.id = this.option.id
|
|
|
}
|
|
|
+ this.form = {...this.form,...this.region}
|
|
|
hostFn(this.form).then(res => {
|
|
|
this.setUserShopAll();
|
|
|
let promptText = this.option.id ? '修改成功!' : '添加成功!'
|