From 45d2f36b376cc9b82195a5c83323df73788a8c62 Mon Sep 17 00:00:00 2001 From: Your Name <2499342078@qq.com> Date: Thu, 29 May 2025 21:28:09 +0800 Subject: [PATCH] add --- apps/web/src/app/main/Test/Page.tsx | 14 +- .../Test/components/ImportExportButtons.tsx | 153 + .../app/main/Test/components/SearchBar.tsx | 46 +- .../app/main/Test/components/StaffTable.tsx | 41 +- config/nginx/conf.d/web.conf | 2 +- pnpm-lock.yaml | 17708 +++++++++------- 6 files changed, 9836 insertions(+), 8128 deletions(-) create mode 100644 apps/web/src/app/main/Test/components/ImportExportButtons.tsx diff --git a/apps/web/src/app/main/Test/Page.tsx b/apps/web/src/app/main/Test/Page.tsx index a5fd766..fc543a4 100755 --- a/apps/web/src/app/main/Test/Page.tsx +++ b/apps/web/src/app/main/Test/Page.tsx @@ -114,26 +114,31 @@ const TestPage: React.FC = () => { }); } } catch (error) { - message.error('操作失败:' + error.message); + message.error('操作失败:' + (error as Error).message); } }; + const handleImportSuccess = () => { + refetch(); + message.success('数据已更新'); + }; + // 初始加载 useEffect(() => { refetch(); }, []); return ( -