fix(following): 支持未登录追剧与历史

This commit is contained in:
Zhou Weidong committed 2026-10-27 10:13:27 +08:00
1 parent 0d785bf1f8
commit 06a2f6d7c0
4 files changed
+292 -53

No files matched your search

@@ -314,6 +314,23 @@ class WatchRecordsController extends ChangeNotifier {
if (!_disposed) notifyListeners();
}
/// 切换账号/设备身份时清除内存数据,不删除服务端记录。
void reset() {
_requestSeq += 1;
records = const [];
total = 0;
loading = false;
loadingMore = false;
hasMore = false;
clearing = false;
error = null;
loadMoreError = null;
actionError = null;
lastErrorCode = null;
_pageIndex = 0;
_notify();
}
@override
void dispose() {
_disposed = true;