修复分页问题

This commit is contained in:
liaoxuezhi 2019-10-09 15:18:08 +08:00
parent 8f548a205a
commit c6b0e58d05

View File

@ -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;
}