fix(xumu): 修复保险申请和治疗管理页面的数据加载问题- 在 AppInsuranceApply 组件中,将 detailList 的默认值改为 detailList || [],以确保数据正确加载

- 在 AppTreatmentManage 组件中,将 detailList 的
This commit is contained in:
aixianling
2025-01-09 15:48:02 +08:00
parent 5fe82a68ef
commit 356e6438e0
2 changed files with 2 additions and 2 deletions

View File

@@ -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}

View File

@@ -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}
}
})