mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 03:30:25 -05:00
🐛 fix(utils): Login redirect url
This commit is contained in:
parent
829edfa824
commit
cbe5f0d509
@ -44,7 +44,7 @@ export function Logout() {
|
||||
const cookies = new Cookies(null, { path: '/' });
|
||||
cookies.remove('Authorization');
|
||||
const pathname = location.pathname;
|
||||
if (!['', '/'].includes(pathname)) {
|
||||
if (!['', '/', '/auth', '/tos'].includes(pathname)) {
|
||||
setRedirectUrl(location.pathname);
|
||||
location.href = `/`;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user