diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index 539a4ae..0abc533 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -356,7 +356,7 @@ export default { body:{ ...this.formData, images: this.fields.images.value, - farmPests: Object.assign(this.formData.farmPests||{},{pestName:this.formData.farmPests?.pestName?.map?.(v=>v.id).join(",")||''}) + farmPests: Object.assign(this.formData.farmPests||{},{pestName:this.formData.farmPests?.pestName?.map?.(v=>v.name).join(",")||''}) } }) if(res.statu){ @@ -411,4 +411,4 @@ export default { this.$provise.off('forming_agr') }, } - \ No newline at end of file +