fix(xumu): 修复耳标号查询接口的参数传递方式- 将参数从第三个参数移到第二个参数位置,以符合 Axios库的正确用法

-这个修改可以解决耳标号查询功能不工作的问题
This commit is contained in:
aixianling
2025-01-09 16:36:36 +08:00
parent 356e6438e0
commit 1a61475f57

View File

@@ -14,7 +14,7 @@ export default {
methods: {
getText(biochipEarNumber) {
this.info = {}
return this.instance.post("/api/breed/earTag/page", null, {params: {biochipEarNumber, pageSize: 10, pageNum: 1}}).then(res => {
return this.instance.post("/api/breed/earTag/page", {params: {biochipEarNumber, pageSize: 10, pageNum: 1}}).then(res => {
if (res?.data?.records) {
this.info = res.data.records[0]
this.$emit('enter', this.info)