Revert "opt: non null (#1091)"

This reverts commit 3c34e43827.
This commit is contained in:
bggRGjQaUbCoE
2025-08-23 22:05:35 +08:00
parent b77403f03f
commit ee819bb260
75 changed files with 362 additions and 400 deletions

View File

@@ -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']) {

View File

@@ -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}",