mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
两步验证失败增加ip记录
This commit is contained in:
@@ -34,6 +34,9 @@ export default function (props: any) {
|
||||
.then((data) => {
|
||||
if (data.data.username) {
|
||||
setUser(data.data);
|
||||
if (props.location.pathname === '/') {
|
||||
history.push('/crontab');
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
@@ -56,12 +59,6 @@ export default function (props: any) {
|
||||
document.title = '控制面板';
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (props.location.pathname === '/') {
|
||||
history.push('/crontab');
|
||||
}
|
||||
}, [props.location.pathname]);
|
||||
|
||||
useEffect(() => {
|
||||
const _theme = localStorage.getItem('qinglong_dark_theme') || 'auto';
|
||||
setFetchMethod(window.fetch);
|
||||
|
||||
Reference in New Issue
Block a user