|
|
@@ -46,7 +46,12 @@ const LockModal = props => {
|
|
|
params
|
|
|
)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- setState({ ...state, longle: state.longle.concat(longle), total, laoding: false })
|
|
|
+ if (params?.page === 1) {
|
|
|
+ // 请求的是第一页
|
|
|
+ setState({ ...state, longle, total, laoding: false })
|
|
|
+ } else {
|
|
|
+ setState({ ...state, longle: state.longle.concat(longle), total, laoding: false })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (type !== lockTypeEnum.SALE) {
|
|
|
@@ -54,7 +59,12 @@ const LockModal = props => {
|
|
|
params
|
|
|
)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- setState({ ...state, client: state.client.concat(client), total, laoding: false })
|
|
|
+ if (params?.page === 1) {
|
|
|
+ // 请求的是第一页
|
|
|
+ setState({ ...state, client, total, laoding: false })
|
|
|
+ } else {
|
|
|
+ setState({ ...state, client: state.client.concat(client), total, laoding: false })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|