From 5af9b7c0ff236de1c04dfa14cef0dfc99eb8f4c0 Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 1 Apr 2026 14:45:39 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=97=B6=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/manage.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/product/manage.vue b/src/pages/product/manage.vue index 2cc0ed0..bdb0515 100644 --- a/src/pages/product/manage.vue +++ b/src/pages/product/manage.vue @@ -196,6 +196,9 @@ export default { unit: '', price: '', categoryId: '', + length: '', + width: '', + area: '', remark: '', status: 1 } @@ -236,11 +239,12 @@ export default { } try { + const formData = JSON.parse(JSON.stringify(this.form)) if (this.isEdit) { - await productApi.updateProduct(this.form) + await productApi.updateProduct(formData) uni.showToast({ title: '更新成功', icon: 'success' }) } else { - await productApi.createProduct(this.form) + await productApi.createProduct(formData) uni.showToast({ title: '创建成功', icon: 'success' }) } this.closeModal()