|
@@ -63,17 +63,14 @@ const addr = {
|
|
|
console.log('searchArea', params)
|
|
|
searchApi({ parentId: params.parentId }).then(res => {
|
|
|
if (params.mapLevel == "city") {
|
|
|
- console.log('111');
|
|
|
commit("changeDistrictList", res.data);
|
|
|
|
|
|
commit("changeSelectDistrict", {});
|
|
|
commit("changeSelectStreet", {});
|
|
|
} else if (params.mapLevel == "district") {
|
|
|
- console.log('222');
|
|
|
commit("changeStreetList", res.data);
|
|
|
commit("changeSelectStreet", {});
|
|
|
} else {
|
|
|
- console.log('333');
|
|
|
commit("changeCityList", res.data);
|
|
|
}
|
|
|
commit("changeParentId", params)
|