增加登录日志

This commit is contained in:
hanhh
2021-09-07 01:40:25 +08:00
parent 0cbfca979e
commit eb196bd40d
11 changed files with 233 additions and 12 deletions
+6 -1
View File
@@ -127,7 +127,12 @@ export default function (props: any) {
{...defaultProps}
>
{React.Children.map(props.children, (child) => {
return React.cloneElement(child, { ...ctx, ...theme, user });
return React.cloneElement(child, {
...ctx,
...theme,
user,
reloadUser: getUser,
});
})}
</ProLayout>
);