fix: improve login page

This commit is contained in:
2026-09-08 14:36:58 +02:00
parent 5e322f6c67
commit c27be5f42c
4 changed files with 18 additions and 9 deletions
+9 -3
View File
@@ -15,10 +15,16 @@
sdk.setUp( 'jh-music', 'http://localhost:8080', '/app' );
onMounted( async () => {
store.isAuth = await sdk.verify();
try {
store.isAuth = await sdk.verify();
if ( store.isAuth )
isAuthorizedHandler();
if ( store.isAuth )
isAuthorizedHandler();
} catch ( e ) {
if ( e !== 'ERR_401' ) {
throw e;
}
}
isLoggingIn.value = false;