front update
All checks were successful
Deploy / deploy (push) Successful in 1m38s

This commit is contained in:
Никита Круглицкий
2025-10-05 21:43:28 +06:00
parent 1ea3b2d376
commit fb5b42e9db
17 changed files with 873 additions and 154 deletions

View File

@@ -0,0 +1,19 @@
export default defineNuxtRouteMiddleware((to, from) => {
const { username } = useGlobalState()
if (!username.value && to.name !== 'Login') {
console.log('yes')
return navigateTo({ name: 'Login' })
}
if (!username.value)
return
const { init } = useMediasoup()
init()
if (to.name === 'Login') {
return navigateTo('/')
}
})