🐞 fix(添加色卡列表): 修复无法搜索的问题

This commit is contained in:
xuan 2023-03-18 15:04:38 +08:00
parent 37ef094a73
commit d85021806a
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const ColorCardList = () => {
const multipleSelection = useRef<typeof orderList['list']>([])
// 搜索
const getSearchData = debounce((value: string) => {
console.log('search', value)
setSearchField(prev => ({ ...prev, name: value, page: 1, size: 10 }))
}, 300)
// 取消
const handleCancel = () => {

View File

@ -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 = () => {