mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 12:07:11 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -105,8 +105,7 @@ class _RcmdPageState extends CommonPageState<RcmdPage, RcmdController>
|
||||
controller.lastRefreshAt =
|
||||
controller.lastRefreshAt! - 1;
|
||||
}
|
||||
((controller.loadingState.value as Success).response
|
||||
as List)
|
||||
controller.loadingState.value.data!
|
||||
.removeAt(actualIndex);
|
||||
controller.loadingState.refresh();
|
||||
},
|
||||
@@ -115,9 +114,7 @@ class _RcmdPageState extends CommonPageState<RcmdPage, RcmdController>
|
||||
return VideoCardV(
|
||||
videoItem: response[index],
|
||||
onRemove: () {
|
||||
((controller.loadingState.value as Success).response
|
||||
as List)
|
||||
.removeAt(index);
|
||||
controller.loadingState.value.data!.removeAt(index);
|
||||
controller.loadingState.refresh();
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user