mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -22,7 +22,10 @@ void showConfirmDialog({
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: onConfirm,
|
onPressed: () {
|
||||||
|
Get.back();
|
||||||
|
onConfirm();
|
||||||
|
},
|
||||||
child: Text('确认'),
|
child: Text('确认'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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']);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user