fix: loop location.pathname

This commit is contained in:
lisonge 2024-08-16 22:01:31 +08:00
parent 4c2692425e
commit 6b1af12c78

View File

@ -12,7 +12,7 @@ if (!import.meta.env.SSR) {
} else {
location.pathname = location.pathname.replace('/selector/', '/guide/');
}
} else if ((location.pathname = '/subscription/')) {
} else if (location.pathname === '/subscription/') {
location.pathname = '/guide/subscription';
}
}