update
1.修改大屏问题及添加新需求
This commit is contained in:
@@ -82,10 +82,12 @@
|
||||
if (props.afterFetch && isFunction(props.afterFetch)) {
|
||||
dataSource.value = props.afterFetch({ result, setPage: setPage, setDataSource: setDataSource });
|
||||
} else {
|
||||
dataSource.value = result?.records;
|
||||
dataSource.value = result?.records ? result?.records : result;
|
||||
}
|
||||
if (result.hasOwnProperty('records')) {
|
||||
paginationProp.value = { ...paginationProp.value, ...result };
|
||||
paginationProp.value.pageSize = result.size;
|
||||
}
|
||||
paginationProp.value = { ...paginationProp.value, ...result };
|
||||
paginationProp.value.pageSize = result.size;
|
||||
}
|
||||
} catch (e) {
|
||||
dataSource.value = [];
|
||||
|
||||
Reference in New Issue
Block a user