mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 04:18:29 +08:00
修复分页问题
This commit is contained in:
parent
8f548a205a
commit
c6b0e58d05
@ -135,8 +135,10 @@ export const CRUDStore = ServiceStore.named('CRUDStore')
|
||||
|
||||
const data = {
|
||||
...self.data,
|
||||
total: items.length,
|
||||
items: items.slice((self.page - 1) * self.perPage, self.page * self.perPage)
|
||||
};
|
||||
self.total = parseInt(data.total || data.count, 10) || 0;
|
||||
self.reInitData(data);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user