mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 11:36:45 +08:00
@@ -34,7 +34,7 @@ class SysMsgController
|
||||
return super.onRefresh();
|
||||
}
|
||||
|
||||
Future<void> onRemove(Object id, int index) async {
|
||||
Future<void> onRemove(dynamic id, int index) async {
|
||||
try {
|
||||
var res = await MsgHttp.delSysMsg(id);
|
||||
if (res['status']) {
|
||||
|
||||
@@ -83,7 +83,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
|
||||
context: context,
|
||||
title: '确定删除该通知?',
|
||||
onConfirm: () =>
|
||||
_sysMsgController.onRemove(item.id!, index),
|
||||
_sysMsgController.onRemove(item.id, index),
|
||||
),
|
||||
title: Text(
|
||||
"${item.title}",
|
||||
|
||||
Reference in New Issue
Block a user