mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-04-30 14:49:56 -04:00
🐛 fix(redirect): Simplify redirect URL logic by removing unnecessary condition for sessionStorage
This commit is contained in:
parent
795476209a
commit
c53ac61501
@ -42,10 +42,8 @@ export function getRedirectUrl() {
|
|||||||
if (url.startsWith('/oauth/') || url.startsWith('/auth')) {
|
if (url.startsWith('/oauth/') || url.startsWith('/auth')) {
|
||||||
url = '/dashboard';
|
url = '/dashboard';
|
||||||
}
|
}
|
||||||
if (url) {
|
|
||||||
sessionStorage.removeItem('redirect-url');
|
sessionStorage.removeItem('redirect-url');
|
||||||
return url;
|
return url;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Logout() {
|
export function Logout() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user