opt: use cascade (#812)

This commit is contained in:
My-Responsitories
2025-05-04 23:08:06 +08:00
committed by GitHub
parent 877732e1e7
commit 6f69a45195
25 changed files with 52 additions and 88 deletions

View File

@@ -105,9 +105,7 @@ class LaterController extends MultiSelectController<Map, HotVideoItemModel> {
Get.back();
var res = await UserHttp.toViewDel(aids: [aid]);
if (res['status']) {
List<HotVideoItemModel> list =
(loadingState.value as Success).response;
list.removeAt(index);
loadingState.value.data!.removeAt(index);
baseCtr.counts[laterViewType] =
baseCtr.counts[laterViewType]! - 1;
loadingState.refresh();