fix(web): invite-register not need authToken
This commit is contained in:
@@ -37,7 +37,7 @@ function App() {
|
|||||||
const { checkJump } = useUser();
|
const { checkJump } = useUser();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const authToken = cookieUtils.get('authToken')
|
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`;
|
window.location.href = `/#/login`;
|
||||||
} else {
|
} else {
|
||||||
checkJump()
|
checkJump()
|
||||||
|
|||||||
Reference in New Issue
Block a user