mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-27 04:26:58 +08:00
opt: use cascade (#812)
This commit is contained in:
committed by
GitHub
parent
877732e1e7
commit
6f69a45195
@@ -49,9 +49,7 @@ class SubController
|
||||
var res = await UserHttp.cancelSub(
|
||||
id: subFolderItem.id!, type: subFolderItem.type!);
|
||||
if (res['status']) {
|
||||
List<SubFolderItemData> list =
|
||||
(loadingState.value as Success).response;
|
||||
list.remove(subFolderItem);
|
||||
loadingState.value.data!.remove(subFolderItem);
|
||||
loadingState.refresh();
|
||||
SmartDialog.showToast('取消订阅成功');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user