fix(xumu): 修复保险申请和治疗管理页面的数据加载问题- 在 AppInsuranceApply 组件中,将 detailList 的默认值改为 detailList || [],以确保数据正确加载
- 在 AppTreatmentManage 组件中,将 detailList 的
This commit is contained in:
		| @@ -49,7 +49,7 @@ export default { | ||||
|       return id && this.instance.post("/api/insurance/apply/getInfo", null, {params: {id}}).then(res => { | ||||
|         if (res?.data) { | ||||
|           const detail = res.data | ||||
|           detail.detailList = detail.weightList || [] | ||||
|           detail.detailList = detail.detailList || [] | ||||
|           let {farmPicture: picture = "{}"} = detail | ||||
|           picture = JSON.parse(picture) | ||||
|           return this.detail = {...detail, ...picture} | ||||
|   | ||||
| @@ -56,7 +56,7 @@ export default { | ||||
|       return id && this.instance.post("/api/breed/treatment/getInfo", null, {params: {biochipEarNumber: id}}).then(res => { | ||||
|         if (res?.data) { | ||||
|           const detail = res.data | ||||
|           detail.detailList = detail.immunityList || [] | ||||
|           detail.detailList = detail.treatmentList || [] | ||||
|           return this.detail = {...detail} | ||||
|         } | ||||
|       }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user