🐛 fix(utils): Login redirect url

This commit is contained in:
web@ppanel 2024-11-14 01:43:55 +07:00
parent 829edfa824
commit cbe5f0d509

View File

@ -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 = `/`;
}