From e66597d4fa621ad215dc08509d3891f93032f1dc Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Sep 2024 15:12:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91:=20=E8=AF=AD=E7=A7=8D=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81,=20=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=90=8E=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfo.jsx | 2 +- src/views/products/Detail/ProductInfoForm.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/products/Detail/ProductInfo.jsx b/src/views/products/Detail/ProductInfo.jsx index 077fac5..c42c29c 100644 --- a/src/views/products/Detail/ProductInfo.jsx +++ b/src/views/products/Detail/ProductInfo.jsx @@ -93,7 +93,7 @@ const ProductInfo = ({ ...props }) => { } } - // console.log(readyToSubInfo, "\n", mergedLgc); + // console.log('before save', '\n lgcEdits:', lgcEdits, '\n mergedLgc', mergedLgc); // return false; // debug: 0 /** 提交保存 */ setLoading(true); diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index 697c515..1822321 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -49,7 +49,7 @@ const InfoForm = ({ onSubmit, onReset, onValuesChange, editablePerm, infoEditabl setShowSave(infoEditable || priceEditable); // setEditable(editable0); return () => {}; - }, [editingProduct?.info?.id, editablePerm, infoEditable, priceEditable]); + }, [editingProduct, editablePerm, infoEditable, priceEditable]); const onFinish = (values) => { console.log('Received values of form, origin form value: \n', values);