From ff31d592924958958c21fdef1975d499586d964f Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期五, 26 十二月 2025 17:41:43 +0800
Subject: [PATCH] BUG修复

---
 rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx b/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
index 93a152c..61e2d69 100644
--- a/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
+++ b/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
@@ -197,15 +197,16 @@
             deleteOne(
                 RESOURCE,
                 { id: node.id },
-                {
-                    onSuccess: () => {
-                        handleRefresh();
-                        notify('Department deleted successfully', { type: 'info', messageArgs: { _: 'Department deleted successfully' } });
-                    },
-                    onError: (error) => {
-                        notify(`Error: ${error.message}`, { type: 'warning', messageArgs: { _: `Error: ${error.message}` } });
-                    },
-                }
+                    {
+                        onSuccess: () => {
+                            handleRefresh();
+                            const msg = translate('ra.message.delete_success');
+                            notify(msg, { type: 'success', messageArgs: { _: msg } });
+                        },
+                        onError: (error) => {
+                            notify(`Error: ${error.message}`, { type: 'warning', messageArgs: { _: `Error: ${error.message}` } });
+                        },
+                    }
             );
         }
     };
@@ -354,4 +355,4 @@
     );
 }
 
-export default MatnrGroupList;
\ No newline at end of file
+export default MatnrGroupList;

--
Gitblit v1.9.1