fix(web): invite-register not need authToken

This commit is contained in:
zhaoying
2026-02-25 15:43:05 +08:00
parent bd63e0fce8
commit 4ea9c7e660

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/') && !window.location.hash.includes('#/jump')) {
if (!authToken && !window.location.hash.includes('#/login') && !window.location.hash.includes('#/conversation/') && !window.location.hash.includes('#/jump') && !window.location.hash.includes('#/invite-register')) {
window.location.href = `/#/login`;
} else {
checkJump()