mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复设置头像
This commit is contained in:
parent
bd35725b3c
commit
85d8565241
|
@ -98,7 +98,7 @@ const SecuritySettings = ({ user, userChange }: any) => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTwoFactorActivated(user && user.twoFactorActivated);
|
setTwoFactorActivated(user && user.twoFactorActivated);
|
||||||
setAvatar(user && user.avatar);
|
setAvatar(user && `/api/static/${user.avatar}`);
|
||||||
}, [user]);
|
}, [user]);
|
||||||
|
|
||||||
return twoFactoring ? (
|
return twoFactoring ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user