From a7c8809d123f491115017fba3004beb2aefbd8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Thu, 9 Mar 2023 17:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/department/index.tsx | 2 +- src/pages/resource/resource-category/index.tsx | 2 +- src/pages/system/adminroles/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/department/index.tsx b/src/pages/department/index.tsx index ef570ba..94de3e3 100644 --- a/src/pages/department/index.tsx +++ b/src/pages/department/index.tsx @@ -137,7 +137,7 @@ export const DepartmentPage: React.FC = () => { const delUser = (id: any) => { department.destroyDepartment(id).then((res: any) => { message.success("操作成功"); - setRefresh(!refresh); + resetData(); }); }; diff --git a/src/pages/resource/resource-category/index.tsx b/src/pages/resource/resource-category/index.tsx index 7ff3886..7fc0a6f 100644 --- a/src/pages/resource/resource-category/index.tsx +++ b/src/pages/resource/resource-category/index.tsx @@ -138,7 +138,7 @@ export const ResourceCategoryPage: React.FC = () => { const delUser = (id: any) => { resourceCategory.destroyResourceCategory(id).then((res: any) => { message.success("操作成功"); - setRefresh(!refresh); + resetData(); }); }; diff --git a/src/pages/system/adminroles/index.tsx b/src/pages/system/adminroles/index.tsx index 17eb32e..1849b32 100644 --- a/src/pages/system/adminroles/index.tsx +++ b/src/pages/system/adminroles/index.tsx @@ -81,7 +81,7 @@ export const SystemAdminrolesPage: React.FC = () => { const delUser = (id: any) => { adminRole.destroyAdminRole(id).then((res: any) => { message.success("操作成功"); - setRefresh(!refresh); + resetData(); }); };