From 3c4718e993a291ba8679f861f48446325f6bf539 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Tue, 16 Jul 2024 10:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB=E6=96=B0?= =?UTF-8?q?=E5=BB=BABug=E4=BF=AE=E5=A4=8D=E5=92=8C=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E5=88=A0=E9=99=A4Bug=E4=BF=AE=E5=A4=8D20240716?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods/goodstechnology/components/goodstechnologymaken.jsx | 3 --- .../goods/goodstypemanage/components/CreateGoodsAttribute.jsx | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx b/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx index 0070da7..0bfe1dc 100644 --- a/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx +++ b/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx @@ -292,9 +292,6 @@ const goodstechnologymaken = (props) => { }) } const onClickDevicedele = (e, devideId, goodsAttributeId, warehousrTemplateId, action) => { - if (goodstechnologydata.length > 0) { - setgoodstechnologydata([]) - } if (fromdata.length > 0) { setfromdata([]) } diff --git a/src/pages/database/goods/goodstypemanage/components/CreateGoodsAttribute.jsx b/src/pages/database/goods/goodstypemanage/components/CreateGoodsAttribute.jsx index 84c7e80..0627b1c 100644 --- a/src/pages/database/goods/goodstypemanage/components/CreateGoodsAttribute.jsx +++ b/src/pages/database/goods/goodstypemanage/components/CreateGoodsAttribute.jsx @@ -36,7 +36,8 @@ const GoodsAttribute = (props) => { } }; const handleInputChange = (e, field) => { - const updatedValues = [...inputValues]; + // const updatedValues = [...inputValues]; + const updatedValues = [inputValues]; updatedValues[field.key] = { ...updatedValues[field.key], value: e.target.value }; setInputValues(updatedValues); };