mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
修复分页问题
This commit is contained in:
parent
f4d8e175f6
commit
0c7a7704be
@ -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