mirror of
https://github.com/PlayEdu/backend
synced 2025-11-19 07:57:45 +08:00
fixed: 未登录的跳转
This commit is contained in:
@@ -65,6 +65,9 @@ if (getToken()) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (window.location.pathname !== "/login") {
|
||||||
|
window.location.href = "/login";
|
||||||
|
}
|
||||||
RootPage = <InitPage loginData={null} />;
|
RootPage = <InitPage loginData={null} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user