From 43f2fe7fa6ec90b957d3182730e5c726b7158ced Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 23 九月 2024 14:49:49 +0800 Subject: [PATCH] # --- zy-acs-framework/src/main/resources/templates/react-admin/ReactCreate.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zy-acs-framework/src/main/resources/templates/react-admin/ReactCreate.txt b/zy-acs-framework/src/main/resources/templates/react-admin/ReactCreate.txt index 17b9497..d461fb6 100644 --- a/zy-acs-framework/src/main/resources/templates/react-admin/ReactCreate.txt +++ b/zy-acs-framework/src/main/resources/templates/react-admin/ReactCreate.txt @@ -48,8 +48,8 @@ notify('common.response.success'); }; - const handleError = async (data) => { - notify('common.response.fail'); + const handleError = async (error) => { + notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } }); }; return ( -- Gitblit v1.9.1