diff --git a/project/xumu/components/AiEartagRemote.vue b/project/xumu/components/AiEartagRemote.vue index 5576b70c..10ad70ed 100644 --- a/project/xumu/components/AiEartagRemote.vue +++ b/project/xumu/components/AiEartagRemote.vue @@ -14,9 +14,9 @@ export default { methods: { getText(biochipEarNumber) { this.info = {} - return this.instance.post("/api/breed/earTag/page", null, { params: { biochipEarNumber } }).then(res => { - if (res?.data) { - this.info = res.data + return this.instance.post("/api/breed/earTag/page", null, {params: {biochipEarNumber, pageSize: 10, pageNum: 1}}).then(res => { + if (res?.data?.records) { + this.info = res.data.records[0] this.$emit('enter', this.info) } }) @@ -27,7 +27,7 @@ export default {