|
|
@@ -50,13 +50,15 @@ export default {
|
|
|
this.provinces = provinceCity.provinces;
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.province = this.provinceCode;
|
|
|
- this.provinceChanged(this.provinceCode);
|
|
|
- this.city = this.cityCode;
|
|
|
- console.log(this.city)
|
|
|
- console.log(this.province)
|
|
|
- console.log(this.provinceCode)
|
|
|
- console.log(this.cityCode)
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.province = this.provinceCode;
|
|
|
+ this.provinceChanged(this.provinceCode);
|
|
|
+ this.city = this.cityCode;
|
|
|
+ console.log(this.city)
|
|
|
+ console.log(this.province)
|
|
|
+ console.log(this.provinceCode)
|
|
|
+ console.log(this.cityCode)
|
|
|
+ })
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -107,6 +109,10 @@ export default {
|
|
|
this.province = this.provinceCode
|
|
|
this.city = this.cityCode
|
|
|
},
|
|
|
+ // provinceCode(val){
|
|
|
+ // console.log("pro code change in pro city com",val)
|
|
|
+ // this.provinceChanged(val)
|
|
|
+ // },
|
|
|
|
|
|
},
|
|
|
};
|