From d097e6da6d617e118ca3598641445fccb4b0be9f Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Wed, 22 Nov 2023 17:19:03 +0800 Subject: [PATCH] . --- pages/user/addAddress.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,