fix: list local date

This commit is contained in:
jialin
2024-07-15 10:17:18 +08:00
parent ec28523daa
commit a834d79b7d
7 changed files with 35 additions and 19 deletions
+4 -3
View File
@@ -47,9 +47,10 @@ const Models: React.FC = () => {
cancelToken: axiosToken.token
});
console.log('res=======', res);
if (!firstLoad) {
setDataSource(res.items);
}
// if (!firstLoad) {
// setDataSource(res.items);
// }
setDataSource(res.items);
setTotal(res.pagination.total);
} catch (error) {
setDataSource([]);