|
@@ -37,7 +37,7 @@ export const useInfinite = (path, props) => {
|
|
|
}
|
|
|
|
|
|
const onReset = async () => {
|
|
|
- const { rows, total } = await initRecordData();
|
|
|
+ const { rows, total } = await initRecordData({page:1, pageSize: (pageParams.value.page * pageParams.value.pageSize) + 1});
|
|
|
|
|
|
recordList.value = rows;
|
|
|
counter.value = total;
|
|
@@ -53,9 +53,9 @@ export const useInfinite = (path, props) => {
|
|
|
|
|
|
const initRecordData = async (params = {}) => {
|
|
|
const reqParams = {
|
|
|
+ ...pageParams.value,
|
|
|
...props,
|
|
|
- ...params,
|
|
|
- ...pageParams.value
|
|
|
+ ...params
|
|
|
}
|
|
|
return await chatApi.getRecordFetch(path, reqParams);
|
|
|
}
|