|
|
@@ -485,6 +485,7 @@ const handleSearchRes = (v) => {
|
|
|
farmCity.value = v.item?.city + v.item?.district || "";
|
|
|
// 地址修改后,如果满足条件则自动更新农场名称
|
|
|
updateFarmNameIfNeeded();
|
|
|
+ getSpecieList();
|
|
|
};
|
|
|
|
|
|
// 表单
|
|
|
@@ -731,7 +732,7 @@ const specieList = ref([]);
|
|
|
|
|
|
function getSpecieList() {
|
|
|
return VE_API.farm.fetchSpecieList({ point: centerPoint.value }).then(({ data }) => {
|
|
|
- specieList.value = data;
|
|
|
+ specieList.value = data || [];
|
|
|
return data;
|
|
|
});
|
|
|
}
|