mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 20:48:40 +00:00
@@ -38,7 +38,7 @@ class FavTopicController
|
||||
Future<LoadingState<FavTopicData>> customGetData() =>
|
||||
FavHttp.favTopic(page: page);
|
||||
|
||||
Future<void> onRemove(int index, int id) async {
|
||||
Future<void> onRemove(int index, int? id) async {
|
||||
var res = await FavHttp.delFavTopic(id);
|
||||
if (res['status']) {
|
||||
loadingState
|
||||
|
||||
@@ -93,7 +93,7 @@ class _FavTopicPageState extends State<FavTopicPage>
|
||||
context: context,
|
||||
title: '确定取消收藏?',
|
||||
onConfirm: () {
|
||||
_controller.onRemove(index, item.id!);
|
||||
_controller.onRemove(index, item.id);
|
||||
},
|
||||
),
|
||||
borderRadius: const BorderRadius.all(
|
||||
|
||||
Reference in New Issue
Block a user