diff --git a/pages/user/addAddress.vue b/pages/user/addAddress.vue index 0511ae5..148a931 100644 --- a/pages/user/addAddress.vue +++ b/pages/user/addAddress.vue @@ -176,7 +176,9 @@ for (let i = 0; i < this.addressList.length; i++) { this.addressList[i].UName = this.addressList[i].provName - if (this.addressList[i].cityList == null) { + if (this.addressList[i].cityList == null) { + // 如果没有cityList数据,就添加一项,用省份的信息 + // console.log('存在单一',this.addressList[i].provId) this.addressList[i].cityList = [{ "cityId": this.addressList[i].provId, "provId": this.addressList[i].provId,