From 1a73f08a7496dc445df2cb2d13a6140654e748de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 4 Apr 2023 14:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BA=BA=E5=91=98=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=9B=B8=E5=85=B3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/tree-adminroles/index.tsx | 3 ++- src/pages/system/administrator/index.tsx | 1 + src/pages/system/adminroles/compenents/update.tsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compenents/tree-adminroles/index.tsx b/src/compenents/tree-adminroles/index.tsx index b0e6397..237790b 100644 --- a/src/compenents/tree-adminroles/index.tsx +++ b/src/compenents/tree-adminroles/index.tsx @@ -9,6 +9,7 @@ interface Option { } interface PropInterface { + refresh: boolean; type: string; text: string; onUpdate: (keys: any, title: any) => void; @@ -34,7 +35,7 @@ export const TreeAdminroles = (props: PropInterface) => { setTreeData(new_arr); } }); - }, []); + }, [props.refresh]); const onSelect = (selectedKeys: any, info: any) => { let label = "全部" + props.text; if (info) { diff --git a/src/pages/system/administrator/index.tsx b/src/pages/system/administrator/index.tsx index 2df8df6..9f05ccd 100644 --- a/src/pages/system/administrator/index.tsx +++ b/src/pages/system/administrator/index.tsx @@ -185,6 +185,7 @@ const SystemAdministratorPage = () => {
{ diff --git a/src/pages/system/adminroles/compenents/update.tsx b/src/pages/system/adminroles/compenents/update.tsx index d2158b2..611135c 100644 --- a/src/pages/system/adminroles/compenents/update.tsx +++ b/src/pages/system/adminroles/compenents/update.tsx @@ -152,7 +152,7 @@ export const SystemAdminrolesUpdate: React.FC = ({ return ( <>