mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: use cascade (#812)
This commit is contained in:
committed by
GitHub
parent
877732e1e7
commit
6f69a45195
@@ -45,8 +45,7 @@ class BlackListController
|
||||
onConfirm: () async {
|
||||
var result = await VideoHttp.relationMod(mid: mid, act: 6, reSrc: 11);
|
||||
if (result['status']) {
|
||||
List<BlackListItem> list = (loadingState.value as Success).response;
|
||||
list.removeAt(index);
|
||||
loadingState.value.data!.removeAt(index);
|
||||
total.value -= 1;
|
||||
loadingState.refresh();
|
||||
SmartDialog.showToast('操作成功');
|
||||
|
||||
Reference in New Issue
Block a user