修复设置头像

This commit is contained in:
whyour 2022-05-09 15:33:18 +08:00
parent bd35725b3c
commit 85d8565241

View File

@ -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 ? (