feat(web): sso

This commit is contained in:
zhaoying
2026-02-04 17:47:46 +08:00
parent 161da723b9
commit 7e0b31626f
5 changed files with 63 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ function App() {
const { checkJump } = useUser();
useEffect(() => {
const authToken = cookieUtils.get('authToken')
if (!authToken && !window.location.hash.includes('#/login') && !window.location.hash.includes('#/conversation/')) {
if (!authToken && !window.location.hash.includes('#/login') && !window.location.hash.includes('#/conversation/') && !window.location.hash.includes('#/jump')) {
window.location.href = `/#/login`;
} else {
checkJump()