mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
opt: common ctr
opt: state Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -30,8 +30,8 @@ class FavNoteController
|
||||
@override
|
||||
Future<LoadingState<List<FavArticleModel>?>> customGetData() {
|
||||
return isPublish
|
||||
? VideoHttp.userNoteList(page: currentPage)
|
||||
: VideoHttp.noteList(page: currentPage);
|
||||
? VideoHttp.userNoteList(page: page)
|
||||
: VideoHttp.noteList(page: page);
|
||||
}
|
||||
|
||||
Future<void> onRemove() async {
|
||||
@@ -47,7 +47,7 @@ class FavNoteController
|
||||
if (res['status']) {
|
||||
List<FavArticleModel> remainList =
|
||||
dataList.toSet().difference(removeList).toList();
|
||||
loadingState.value = LoadingState.success(remainList);
|
||||
loadingState.value = Success(remainList);
|
||||
enableMultiSelect.value = false;
|
||||
SmartDialog.showToast('删除成功');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user