mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
opt: LoadingState (#1776)
This commit is contained in:
committed by
GitHub
parent
3741fe54ff
commit
17883eb77e
@@ -48,13 +48,13 @@ class SubController extends CommonListController<SubData, SubItemModel> {
|
||||
id: subFolderItem.id!,
|
||||
type: subFolderItem.type!,
|
||||
);
|
||||
if (res['status']) {
|
||||
if (res.isSuccess) {
|
||||
loadingState
|
||||
..value.data!.remove(subFolderItem)
|
||||
..refresh();
|
||||
SmartDialog.showToast('取消订阅成功');
|
||||
} else {
|
||||
SmartDialog.showToast(res['msg']);
|
||||
res.toast();
|
||||
}
|
||||
Get.back();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user