管理人员角色相关优化

This commit is contained in:
禺狨
2023-04-04 14:10:58 +08:00
parent ab06c731aa
commit 1a73f08a74
3 changed files with 4 additions and 2 deletions

View File

@@ -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) {