Commit 77ccf63b authored by 武广's avatar 武广

fix: 修改搜索没有重置页码问题

parent c8698137
...@@ -65,14 +65,17 @@ const SaleDateModal = props => { ...@@ -65,14 +65,17 @@ const SaleDateModal = props => {
// 点击搜索 // 点击搜索
const onSearch = () => { const onSearch = () => {
setSearchKeyword(searchName); setSearchKeyword(searchName);
searchList({ [searchType === '1' ? 'name' : 'skuId']: searchName }); setPage(1);
searchList({ [searchType === '1' ? 'name' : 'skuId']: searchName, current: 1 });
}; };
// 切换店铺 // 切换店铺
const onChangeShop = v => { const onChangeShop = v => {
setShopId(v); setShopId(v);
setPage(1);
searchList({ searchList({
shopId: v, shopId: v,
current: 1,
}); });
setSelectedRowKeys([]); setSelectedRowKeys([]);
setSelectedRows([]); setSelectedRows([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment