refactor(xumu): 优化 AppWeightManage 添加接口调用方式- 修改了 AppWeightManage/add.vue 文件中的 submit 方法
- 将 post 请求的参数传递方式从 body 改为 params - 这种改动可能会影响后端接口的处理逻辑,需要相应调整
This commit is contained in:
		| @@ -62,7 +62,7 @@ export default { | ||||
|     submit() { | ||||
|       this.$refs.detail.validate().then(() => { | ||||
|         this.form.biochipEarNumber = this.detail.biochipEarNumber | ||||
|         this.instance.post("/api/breed/weight/addOrEdit", this.form).then(res => { | ||||
|         this.instance.post("/api/breed/weight/addOrEdit", null, {params: this.form}).then(res => { | ||||
|           if (res?.code == 0) { | ||||
|             this.dialog = false | ||||
|             this.getDetail() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user