This commit is contained in:
@@ -51,11 +51,12 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
|
||||
// return navigateTo('/login')
|
||||
// }
|
||||
// }
|
||||
|
||||
console.log(to.path)
|
||||
if (to.path.startsWith("/game")) {
|
||||
if (Array.isArray(to.params.id)) {
|
||||
return navigateTo("/lobby");
|
||||
}
|
||||
console.log(to.query.id)
|
||||
// if (Array.isArray(to.query.id)) {
|
||||
// return navigateTo("/lobby");
|
||||
// }
|
||||
return;
|
||||
}
|
||||
if (to.path == "/lobby") {
|
||||
|
||||
Reference in New Issue
Block a user