fix(xumu): 修复耳标号查询接口的参数传递方式- 将参数从第三个参数移到第二个参数位置,以符合 Axios库的正确用法
-这个修改可以解决耳标号查询功能不工作的问题
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user