mirror of
https://github.com/elk-zone/elk.git
synced 2024-07-22 06:06:48 +01:00
7 lines
191 B
TypeScript
7 lines
191 B
TypeScript
const reloadRoutes = new Set(['/invite'])
|
|
|
|
export default defineNuxtRouteMiddleware((to) => {
|
|
if (process.client && reloadRoutes.has(to.fullPath))
|
|
window.location.pathname = to.path
|
|
})
|