fix(auth): keep subsystem oauth working without sso

This commit is contained in:
mac
2026-07-16 16:43:01 +08:00
parent cafa8bc840
commit 2835cf2576
3 changed files with 16 additions and 1 deletions
+4
View File
@@ -81,6 +81,10 @@ const handleLocalLogin = async () => {
try {
await login(value, '')
const redirect = typeof route.query.redirect === 'string' ? route.query.redirect : '/'
if (redirect.startsWith('/auth/')) {
window.location.assign(redirect)
return
}
router.replace(redirect)
} finally {
loading.value = false