mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
4f2b821088
commit
d9f97c832c
1 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@
|
|||
}
|
||||
|
||||
goto(redirectPath);
|
||||
sessionStorage.removeItem('redirectPath');
|
||||
localStorage.removeItem('redirectPath');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
}
|
||||
|
||||
localStorage.token = token;
|
||||
await setSessionUser(sessionUser, sessionStorage.getItem('redirectPath') || null);
|
||||
await setSessionUser(sessionUser, localStorage.getItem('redirectPath') || null);
|
||||
};
|
||||
|
||||
let onboarding = false;
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
goto(redirectPath || '/');
|
||||
} else {
|
||||
if (redirectPath) {
|
||||
sessionStorage.setItem('redirectPath', redirectPath);
|
||||
localStorage.setItem('redirectPath', redirectPath);
|
||||
}
|
||||
}
|
||||
await oauthCallbackHandler();
|
||||
|
|
|
|||
Loading…
Reference in a new issue