diff --git a/src/pages/product/manage.vue b/src/pages/product/manage.vue index bdb0515..6e3b9ed 100644 --- a/src/pages/product/manage.vue +++ b/src/pages/product/manage.vue @@ -241,7 +241,7 @@ export default { try { const formData = JSON.parse(JSON.stringify(this.form)) if (this.isEdit) { - await productApi.updateProduct(formData) + await productApi.updateProduct(formData.productId, formData) uni.showToast({ title: '更新成功', icon: 'success' }) } else { await productApi.createProduct(formData)