From d85021806ae311d34cd8ad573fd6b8aad7989a5c Mon Sep 17 00:00:00 2001 From: xuan Date: Sat, 18 Mar 2023 15:04:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=B7=BB=E5=8A=A0=E8=89=B2?= =?UTF-8?q?=E5=8D=A1=E5=88=97=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=90=9C=E7=B4=A2=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/getColorCard/colorCardList/index.tsx | 2 +- src/pages/sampleCutting/sampleCuttingList/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/getColorCard/colorCardList/index.tsx b/src/pages/getColorCard/colorCardList/index.tsx index b5d4bd1..bb8bf02 100644 --- a/src/pages/getColorCard/colorCardList/index.tsx +++ b/src/pages/getColorCard/colorCardList/index.tsx @@ -25,7 +25,7 @@ const ColorCardList = () => { const multipleSelection = useRef([]) // 搜索 const getSearchData = debounce((value: string) => { - console.log('search', value) + setSearchField(prev => ({ ...prev, name: value, page: 1, size: 10 })) }, 300) // 取消 const handleCancel = () => { diff --git a/src/pages/sampleCutting/sampleCuttingList/index.tsx b/src/pages/sampleCutting/sampleCuttingList/index.tsx index 2c550b8..873d6bc 100644 --- a/src/pages/sampleCutting/sampleCuttingList/index.tsx +++ b/src/pages/sampleCutting/sampleCuttingList/index.tsx @@ -52,7 +52,7 @@ const SampleCuttingList = () => { // 搜索 const getSearchData = debounce((value: string) => { console.log('search', value) - setSearchField(val => ({ ...val, product_code_and_name: value })) + setSearchField(val => ({ ...val, product_code_and_name: value, page: 1, size: 10 })) }, 300) // 取消 const handleCancel = () => {