mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-16 08:37:08 +08:00
修复订阅执行日志输出
This commit is contained in:
@@ -29,7 +29,7 @@ import { init } from '../utils/init';
|
||||
export default function (props: any) {
|
||||
const ctx = useCtx();
|
||||
const theme = useTheme();
|
||||
const [user, setUser] = useState<any>();
|
||||
const [user, setUser] = useState<any>({});
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
const [systemInfo, setSystemInfo] = useState<{ isInitialized: boolean }>();
|
||||
const ws = useRef<any>(null);
|
||||
|
||||
@@ -99,7 +99,7 @@ const SecuritySettings = ({ user, userChange }: any) => {
|
||||
|
||||
useEffect(() => {
|
||||
setTwoFactorActivated(user && user.twoFactorActivated);
|
||||
setAvatar(user && `/api/static/${user.avatar}`);
|
||||
setAvatar(user.avatar && `/api/static/${user.avatar}`);
|
||||
}, [user]);
|
||||
|
||||
return twoFactoring ? (
|
||||
|
||||
Reference in New Issue
Block a user