|
@@ -27,7 +27,12 @@ const SearchModal = ({ clientId, onSelect }) => {
|
|
|
code = -1
|
|
code = -1
|
|
|
} = await queryCustomers(params)
|
|
} = await queryCustomers(params)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- setState({ ...state, customer: state.customer.concat(customer), total, laoding: false })
|
|
|
|
|
|
|
+ if (params?.page === 1) {
|
|
|
|
|
+ // 请求的是第一页
|
|
|
|
|
+ setState({ ...state, customer, total, laoding: false })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ setState({ ...state, customer: state.customer.concat(customer), total, laoding: false })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|