Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-08 08:33:03 +08:00
parent b85413be9b
commit 2fe0f43cb6
4 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,10 @@ void showConfirmDialog({
),
),
TextButton(
onPressed: onConfirm,
onPressed: () {
Get.back();
onConfirm();
},
child: Text('确认'),
),
],

View File

@@ -143,7 +143,6 @@ class BlackListController extends CommonController {
context: context,
title: '确定将 $name 移出黑名单?',
onConfirm: () async {
Get.back();
var result = await VideoHttp.relationMod(mid: mid, act: 6, reSrc: 11);
if (result['status']) {
List list = (loadingState.value as Success).response;

View File

@@ -245,7 +245,6 @@ class _FavDetailPageState extends State<FavDetailPage> {
context: context,
title: '确定删除该收藏夹?',
onConfirm: () {
Get.back();
UserHttp.deleteFolder(
mediaIds: [mediaId])
.then((data) {

View File

@@ -92,7 +92,6 @@ class LaterController extends MultiSelectController {
if (res['status']) {
loadingState.value = LoadingState.success([]);
}
Get.back();
SmartDialog.showToast(res['msg']);
},
);