Commit 2e3550a8 authored by Xuguangxing's avatar Xuguangxing

fix: 级联地址列表获取方式修改

parent b3089c31
...@@ -170,8 +170,8 @@ export default { ...@@ -170,8 +170,8 @@ export default {
// 获取地址列表 // 获取地址列表
async getAddrList(addrId = '', index = 0) { async getAddrList(addrId = '', index = 0) {
const areaData = JSON.parse(JSON.stringify(this.areaData)); // 浅拷贝 const areaData = JSON.parse(JSON.stringify(this.areaData)); // 浅拷贝
const res = await address.zoneList(addrId); // 获取地址列表默认取一级 const [res] = await address.zoneList(addrId); // 获取地址列表默认取一级
const addrList = res[0].addrList || []; const addrList = res.addrList || [];
areaData[index] = addrList; areaData[index] = addrList;
if (addrList && addrList.length) { if (addrList && addrList.length) {
// 点击最后一级别addrId 所得addrList数据为空 // 点击最后一级别addrId 所得addrList数据为空
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment