feat: 补充我的页内容区块
This commit is contained in:
1 parent
7971ac18fc
commit
9953c955e3
23 files changed
+800
-9
No files matched your search
@@ -14,6 +14,7 @@ class MineLogic extends ChangeNotifier {
|
||||
|
||||
final WatchHistoryRepository history;
|
||||
List<WatchProgress> recent = const [];
|
||||
int? watchRecordTotal;
|
||||
bool recentLoading = false;
|
||||
String? recentError;
|
||||
bool _disposed = false;
|
||||
@@ -28,8 +29,9 @@ class MineLogic extends ChangeNotifier {
|
||||
recentError = null;
|
||||
notify();
|
||||
try {
|
||||
final page = await history.recent(pageIndex: 1, pageSize: 20);
|
||||
final page = await history.recent(pageIndex: 1, pageSize: 10);
|
||||
recent = page.list;
|
||||
watchRecordTotal = page.total;
|
||||
} catch (_) {
|
||||
recentError = 'progressError';
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user