|
@@ -500,10 +500,18 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
this.form = Object.assign(this.form, res.data)
|
|
|
this.form.isShowSpecialPrice = Number(this.form.isShowSpecialPrice)
|
|
|
- this.getArea('city', this.form.provinceSn, 0)
|
|
|
- this.getArea('district', this.form.citySn, 0)
|
|
|
- this.getArea('city', this.form.receiveProvinceSn, 1)
|
|
|
- this.getArea('district', this.form.receiveCitySn, 1)
|
|
|
+ if(this.form.provinceSn){
|
|
|
+ this.getArea('city', this.form.provinceSn, 0)
|
|
|
+ }
|
|
|
+ if(this.form.citySn){
|
|
|
+ this.getArea('district', this.form.citySn, 0)
|
|
|
+ }
|
|
|
+ if(this.form.receiveProvinceSn){
|
|
|
+ this.getArea('city', this.form.receiveProvinceSn, 1)
|
|
|
+ }
|
|
|
+ if(this.form.receiveCitySn){
|
|
|
+ this.getArea('district', this.form.receiveCitySn, 1)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|