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( TextButton(
onPressed: onConfirm, onPressed: () {
Get.back();
onConfirm();
},
child: Text('确认'), child: Text('确认'),
), ),
], ],

View File

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

View File

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

View File

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