mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
fix: del fav
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -72,7 +72,7 @@ class FavSearchController extends CommonController {
|
|||||||
);
|
);
|
||||||
if (result['status']) {
|
if (result['status']) {
|
||||||
List dataList = (loadingState.value as Success).response;
|
List dataList = (loadingState.value as Success).response;
|
||||||
dataList.removeWhere((item) => item.id != id);
|
dataList.removeWhere((item) => item.id == id);
|
||||||
loadingState.value = LoadingState.success(dataList);
|
loadingState.value = LoadingState.success(dataList);
|
||||||
SmartDialog.showToast('取消收藏');
|
SmartDialog.showToast('取消收藏');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user