mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt: LoadingState (#1776)
This commit is contained in:
committed by
GitHub
parent
3741fe54ff
commit
17883eb77e
@@ -36,12 +36,12 @@ class _FavFolderSortPageState extends State<FavFolderSortPage> {
|
||||
var res = await FavHttp.sortFavFolder(
|
||||
sort: sortList.map((item) => item.id).join(','),
|
||||
);
|
||||
if (res['status']) {
|
||||
if (res.isSuccess) {
|
||||
SmartDialog.showToast('排序完成');
|
||||
_favController.loadingState.value = Success(sortList);
|
||||
Get.back();
|
||||
} else {
|
||||
SmartDialog.showToast(res['msg']);
|
||||
res.toast();
|
||||
}
|
||||
},
|
||||
child: const Text('完成'),
|
||||
|
||||
Reference in New Issue
Block a user