mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-01 07:39:47 +08:00
@@ -25,7 +25,7 @@ class FavArticleController
|
||||
Future<LoadingState<FavArticleData>> customGetData() =>
|
||||
FavHttp.favArticle(page: page);
|
||||
|
||||
Future<void> onRemove(int index, String id) async {
|
||||
Future<void> onRemove(int index, String? id) async {
|
||||
final res = await FavHttp.communityAction(opusId: id, action: 4);
|
||||
if (res['status']) {
|
||||
loadingState
|
||||
|
||||
@@ -66,7 +66,7 @@ class _FavArticlePageState extends State<FavArticlePage>
|
||||
context: context,
|
||||
title: '确定取消收藏?',
|
||||
onConfirm: () =>
|
||||
_favArticleController.onRemove(index, item.opusId!),
|
||||
_favArticleController.onRemove(index, item.opusId),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user