diff --git a/project/xumu/AppDeathAudit/add.vue b/project/xumu/AppDeathAudit/add.vue index 885b88e9..31cbd29b 100644 --- a/project/xumu/AppDeathAudit/add.vue +++ b/project/xumu/AppDeathAudit/add.vue @@ -34,9 +34,9 @@ export default { }, getDetail() { const {id} = this.$route.query - return id && this.instance.post("/api/breed/death/page", null, {params: {id}}).then(res => { - if (res?.data?.records) { - const detail = res.data.records[0] || {} + return id && this.instance.post("/api/breed/death/getAuditPage", null, {params: {id}}).then(res => { + if (res?.data) { + const detail = res.data || {} if (detail.picture) { Object.entries(JSON.parse(detail.picture)).forEach(([key, value]) => { detail[key] = value