fix: hide overlay after init failure

This commit is contained in:
Phan An 2023-12-22 14:46:53 +01:00
parent a6a0edb110
commit c6b66c0b5d

View file

@ -116,10 +116,11 @@ const init = async () => {
})
await socketService.init() && socketListener.listen()
overlay.value!.hide()
} catch (err) {
layout.value = 'auth'
throw err
} finally {
overlay.value!.hide()
}
}